I noticed that neither Stargate nor Decrypt scale their output to the window size (e.g. when clicking the Maximize button). Some people like to run games 'full-screen' for a more immersive experience, so I've modified my copy of Stargate by incorporating the resize routine that can be found in several of the supplied example programs:I managed to find an old Dell laptop to try the different versions on, the original = 30FPS the GFX version was 60FPS
I also tried it on a Kindle Fire HDX 3rd gen and that also returned 60FPS.
Code: Select all
WinW% = 640
WinH% = 480
VDU 23,22,WinW%;WinH%;8,16,256,8
ON MOVE PROCresize(@msg%, @lparam%) : RETURN
...
DEF PROCresize(M%, L%) IF M% <> 5 ENDPROC
LOCAL W%, H%
W% = L% AND &FFFF
H% = L% >>> 16
IF W%/H% > WinW%/WinH% THEN
@zoom% = &8000 * H% / WinH%
ELSE
@zoom% = &8000 * W% / WinW%
ENDIF
IF @zoom% < &8000 @zoom% = &8000
IF (@platform% AND 7) < 3 THEN
@panx% = (WinW% - W% * &8000 / @zoom%) / 2
@pany% = (WinH% - H% * &8000 / @zoom%) / 2
ENDIF
ENDPROC