1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-07 14:10:17 +00:00
QB64-PE/internal
Matthew Kilgore 7ac2eefcb8 Fix slowdown of _ScreenX and _ScreenY
The commands _ScreenX and _ScreenY got significantly slower due to the
need to wait for the GLUT thread to wake up and execute the glutGet()
command for them. We've already seen a few programs (including the IDE)
where this behavior completely grinds the program to a halt, so we
definitely can't keep it.

The simple solution here is to not call glutGet() on every _ScreenX/Y
command. Instead every time the idle/timer function runs we get the
current values for the relevant glutGet() variables and store them.
libqb_glut_get() then checks if the value being read is one of the ones
we read in the idle/timer functionand if so just returns the last read
value. By doing it this way the commands no longer has to wait on the
GLUT thread for the result.
2022-11-30 17:33:17 -05:00
..
c Fix slowdown of _ScreenX and _ScreenY 2022-11-30 17:33:17 -05:00
source Automatic update of ./internal/source 2022-11-27 21:41:39 +00:00
support Add initial MIDI language support 2022-09-04 23:35:14 -04:00
temp Corrected OSX setup script to use OSX folder instead of Linux one. 2015-12-14 11:17:09 +11:00
clean.bat Step 10: Update remaining stuff 2022-08-12 02:54:12 +02:00
version.txt Supply a default version label when no version has been calculated 2022-05-20 16:57:45 -04:00