From: Kenneth B. R. <kbr...@al...> - 2001-12-01 21:59:12
|
> Do you know of any existing multimedia timer wrappers for Java? It = > would probably be OS-specific (unless it was very thorough), but I don't = > really mind that much. If all else fails I'll write my own interface = > with JNI. It is trivial to write. One static initialization routine which calls timeBeginPeriod(1) and one getTime() routine which returns timeGetTime(). Note that increasing the timer resolution may decrease the performance of your application, which is why HotSpot does not do it by default. From what I have heard the performance hit for CPU-intensive applications is roughly 10%. > Also, on my system, I got 111fps max, instead of 800-900. Do you know = > what might be causing this? No. |