Daniel Wickeroth wrote: > Hi, > > I updated my OpenSG last Wednesday and recompiled everything, before > running the same tests again. > > Here are the results: http://vis.uni-koeln.de/FrameTests/Test5.htm > > The obj files load much faster now, and the performance is as good as > it was before. > > The Machine I am running the test on is an Intel with 3 Ghz, 1 GB RAM, > and a nVidia GeForce 6200 with 256 MB > > Since I began testing a few weeks ago I wondered why I never get > framerates higher than 64/s. I though that was because the graphics > card just refuses to render more images, but it's in fact just a > programming error I made. Apparently the smallest possible time the > timer I used is able to measure is 1/64 sec, for any smaller > timeintervall I get 0. Since I measure the time of each given frame, > and throw away those with a time of 0 ( I don't want to devide by 0) > the framerate can't be higher than 64. > Try QueryPerformanceCounter instead of TimeGetTime or whatever you're using. That will give you nanosecond timings.
Also, Sleep() always sleeps at least 1/64th of a sec, even though it take milliseconds as parameter. So it's quite useless for real-time work. Cheers, /Marcus ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
