Login
Back to forumSee the full topicGo to last reply

Posted By

Crown
on 2006-01-16
11:22:08
 Re: Yape

I assumed you are using QueryPerformanceCounter which does not equals to the rdtsc instruction (in some cases it might, but the OS knows whether that is safe or not, and doesn't select it as a source on multicore systems where it is not safe). (Also it is not guaranteed that this is available at all, but I haven't seen a case when it wasn't, but in that case you can fall back to a millisecond timer)

It still could be the reason for jerkiness on Mike's computer, as the frequency of the QueryPerformanceCounter is not fixed, it can be different on any computers. the frequency might be a very large number, which can cause calculation overflows. You basically would need to do 128bit calculations, or need to scale the values to prevent overflows, this is what we do in Vice.



Back to top


Copyright © Plus/4 World Team, 2001-2024