Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
55.6 frames per second
#4
Do you know about Interference patterns?

When the program is binking a screen at one rate and the screen hardware updates at a different rate you are going to develope interference patterns which will look like stutters.

Look here at all stutters in the yellow box:
Code: (Select All)
Screen _NewImage(1200, 600, 32)
_ScreenMove 50, 60
For i = 1 To 100
    r1 = r1 + 13
    r2 = r2 + 5
    Circle (300, 300), r1
    Circle (900, 300), r2
Next
Line (300, 280)-(900, 320), &HFFFFFF00, B

You can get a really sweet pattern of regularity if the two rates are mutliples of each other like so:
Code: (Select All)
Screen _NewImage(1200, 600, 32)
_ScreenMove 50, 60
For i = 1 To 100
    r1 = r1 + 4
    r2 = r2 + 8
    Circle (300, 300), r1
    Circle (900, 300), r2
Next
Line (300, 280)-(900, 320), &HFFFFFF00, B

So a solution would be to fine tune the times you CLS to your hardware refresh rate.
b = b + ...
Reply


Messages In This Thread
55.6 frames per second - by Haggarman - 11-18-2023, 02:09 AM
RE: 55.6 frames per second - by TerryRitchie - 11-18-2023, 05:28 AM
RE: 55.6 frames per second - by Haggarman - 11-18-2023, 05:47 AM
RE: 55.6 frames per second - by TerryRitchie - 11-18-2023, 03:12 PM
RE: 55.6 frames per second - by bplus - 11-18-2023, 12:29 PM
RE: 55.6 frames per second - by bplus - 11-18-2023, 12:54 PM
RE: 55.6 frames per second - by SMcNeill - 11-18-2023, 03:59 PM
RE: 55.6 frames per second - by Haggarman - 11-18-2023, 10:09 PM
RE: 55.6 frames per second - by TerryRitchie - 11-19-2023, 03:05 AM
RE: 55.6 frames per second - by DSMan195276 - 11-19-2023, 02:59 AM
RE: 55.6 frames per second - by DSMan195276 - 11-19-2023, 04:41 PM
RE: 55.6 frames per second - by a740g - 11-20-2023, 01:10 AM
RE: 55.6 frames per second - by grymmjack - 11-23-2023, 03:33 AM
RE: 55.6 frames per second - by SMcNeill - 11-20-2023, 01:19 AM



Users browsing this thread: 1 Guest(s)