Hi,
We are using Flightgear version 0.9.4, in which we are trying to implement multi-threading. In one thread, processing of next frame will be done and in the other, rendering of the previous frame. Here, fgMainLoop() is split into two threads, all the processing before calling fgRenderFrame() in one thread, i.e. subsystem updates, input/output updates, tile manager updates, etc., and fgRenderFrame() in the other thread.
Is this the correct method of splitting processing and rendering of frame data?
We are using the below to create a thread:
hThread[1] = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)fgRenderFrame1,NULL,0,&dwID[1]);
CloseHandle(hThread[1]);
Using the above gives us stack dump error.
Please give us a solution as to how to implement threading.
Eagerly waiting for your reply.
Regards,
Hemalatha
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Flightgear-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-users
