DO instead of FOR, _MEM instead of POINT and PSET. Change to DEFLNG instead of default SINGLE precision.
The original, with a FPS counter printed to the top left of it:Code: QB64: [Select]
screenw = _DESKTOPWIDTH screenh = _DESKTOPHEIGHT repeat = -1 WHILE repeat fps = fps + 1 eat = c + 1 ch = INKEY$
A _MEM version, with a FPS counter printed to the top left of it:Code: QB64: [Select]
DEFLNG A-Z screenw = _DESKTOPWIDTH screenh = _DESKTOPHEIGHT o = 0 o = o + 1 repeat = -1 screenw = screenw - 3: screenh = screenh - 3 WHILE repeat fps = fps + 1 i = x - 1 j = y - 1 GOTO skip j = j + 1 i = i + 1 skip:
There's just a slight difference between the two versions, with the original doing about 400 - 500 FPS on my PC, and the _MEM version only doing a little better at 800,000 - 1,000,000 FPS. :D
Let me point you over to some nice holiday movies to watch, and see if they don't take the mystery out of the commands for you: https://www.qb64.org/forum/index.php?topic=1731.0