I've decided to remove SetThreadPriority from QB64...

by (no login)

The theory behind its inclusion was that the thread running your QB64 code which may be running a program not designed for a multitasking environment would yield with a THREAD_PRIORITY_BELOW_NORMAL to other Windows processes so that it didn't slow down other Windows programs. This did actually work!

However, the problems clearly outweigh the benefits:

1. QB64 programs like games requiring a certain amount of fps would often stop in mid play for half a second or so because Windows decided to write some buffered data to the hard disk at a normal thread priority level.

2. Clearly, Linux does not like the user changing thread priority levels and this will become an issue later when QB64 is supported under Linux.

3. There would have been no way for the QB64 programmer to up the thread's priority level, however the QB64 programmer could always make their program more "friendly" by using a (yet to be implemented) version of SLEEP accurate to the nearest millisecond.

In short, I've already removed SetThreadPriority from QB64 and in a few days V0.79r will be released to correct a number of problems including this one.

PS. Thanks for your patience while I tested a few of my ideas in this update.

Posted on May 31, 2008, 4:37 PM
from IP address 122.104.44.123

Respond to this message   

Return to Index


Response TitleAuthor and Date
yeah, add me to the "almost (but not totally) gay for galleon" list rpgfan made (*url)mennonite on May 31
 * Grr... That comment was supposed to die... :Prpgfan3233 on May 31
  *ahh, it's not really a big deal until you proposemennonite on May 31