← Back to team overview

yade-users team mailing list archive

Re: drawing loop

 

Ye Yonggeng said:     (by the date of Wed, 28 Jun 2006 10:18:34 +0200)

> Add glutInit(&argc,argv);
> then, nice, it works well.

OK, it is in yade now. Please make a fresh checkout from subversion.


Threadable class has been removed:
- when yade is idle 0% of CPU is consumed by the display,
- when simulation is ran it is in separate thread, second processor (if
  present) is drawing on the screen otherwise single processor does all the job,
- with two processors theoretically QtGUI should have speed equal to NullGUI,
- drawing on the screen is not synchronized, so some bodies are from previous
  iteration, some are from next iteration (later there will be an option to
  turn synchronization ON - it will slow down computations a bit)


This implementation is stil not 100% tested, please report if there are any
problems. Especially if there is a segfault on exit.

Press enter in each graphical view to start/stop updating it.

There is one known problem - when Simulation Controller is closed and
then opened second time, the spheres are not displayed (if the loaded
scene contains spheres). I hope to fix it later.

-- 
Janek Kozicki                                                         |
_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
http://lists.berlios.de/mailman/listinfo/yade-users



Follow ups

References