If we're going to use threads for any heavy processing, I suggest that we look up as much data as possible on various VM performances - some older versions have terrible problems when it comes to synchronization etc....
I've attempted to get RTS-standard (around 20-25fps) animation using Java, with a program thread, a display thread, a background AI thread, a path-finding queue thread and node generator thread.
Using the range of thread priorities available with the standard JDK values, there was still noticable jerkiness (and I used as little synchronization as possible).
So, it seems are options are:
- try using native threads ???
- become VM experts
- avoid RTS
- pray that JIT compilers will speed things up
- spend 5 years in development, by which time 2000MHz computers will be around
Has anybody else tried running heavy-duty threads in the background?
Jim
I've attempted to get RTS-standard (around 20-25fps) animation using Java, with a program thread, a display thread, a background AI thread, a path-finding queue thread and node generator thread.
Using the range of thread priorities available with the standard JDK values, there was still noticable jerkiness (and I used as little synchronization as possible).
So, it seems are options are:
- try using native threads ???
- become VM experts
- avoid RTS
- pray that JIT compilers will speed things up
- spend 5 years in development, by which time 2000MHz computers will be around
Has anybody else tried running heavy-duty threads in the background?
Jim
Comment