LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: cbarrett1974 on February 16, 2005, 00:46:24

Title: Sys.setProcessPriority gone?
Post by: cbarrett1974 on February 16, 2005, 00:46:24
I've been using Sys.setProcessPriority, which has now been removed from the latest build.

Is this permanent? If so, does anyone know of another way to do this (on Windows)?

Cheers.
Title: Sys.setProcessPriority gone?
Post by: Matzon on February 16, 2005, 05:47:48
We removed it, because while it works - ATI drivers were faulty using high priority. So, reasoning that ATI driers crash with it, other drivers might too.
Title: Sys.setProcessPriority gone?
Post by: princec on February 16, 2005, 09:36:09
Best way to achieve this now is to pluck the source code out of CVS and make a separate library out of it (with just the one function call). It's pretty easy to misuse it...

Cas :)
Title: Sys.setProcessPriority gone?
Post by: elias4444 on February 16, 2005, 17:57:45
Personally, I feel it makes my game look far more professional when I mimic the rest of the industry by saying, "Please make sure you try closing any applications running in the background if you have a problem."

:D   :D   :D   :D
Title: Sys.setProcessPriority gone?
Post by: cbarrett1974 on February 17, 2005, 23:00:04
That's fair enough. To be honest I haven't really benchmarked to compare performance differences between priorities - I just guessed that it might be common for 3d apps to set high priority (especially in full screen mode).
If commercial games don't mess with priorities then I won't either!  :D
Title: Sys.setProcessPriority gone?
Post by: princec on February 18, 2005, 11:06:43
All "chugging" caused by other apps running in the background is usually because of memory running out rather than CPU usage. Windows automatically degrades the process priority of applications whose windows are in the background so a game with focus generally gets all the CPU it needs anyway.

Cas :)
Title: Sys.setProcessPriority gone?
Post by: campnic on May 05, 2005, 02:05:39
Hey guys,

I'm not sure if you'll see this or not but i was having some problems getting the code under the Demos section to compile because it still had the SetPriority stuff in it.  I dont know how easy it is buy you might want to update that code.

Thanks,
Title: Sys.setProcessPriority gone?
Post by: Matzon on May 05, 2005, 09:15:16
err - all files in a release compiles fine?
are you using 0.94 demoes with a 0.96 environment?