Hi there.
I've already made two topics that discuss jitters but now I've clearly identified the problem. Please note that this problem does NOT occur with my DBPro programs, so it's not a display setup issue. It is also NOT a timing issue, I've used fixed framerates from 15-120 in DBPro and DBC and I've never ever had this problem.
If I use frame limiting (various techniques) on my 2D or 3D programs in BB3D, and if I use any fps setting other than 60fps, my screen "jitters" and occasionally "flashes" black. Why?
My display is set to "application preference" for vsync. I get flashes whether I use flip true or flip false or any of the other combinations. This is not a "tearing" issue, I know what tearing looks like and this is not it.
Here, please try this simple code...
This code runs nice and smooth with no jitters as long as debug mode is turned off.
If you change the 60 value in "If MilliSecs()-count# < 1000/60" to anything significantly less than 60... try 50, 40 or 30, please tell me if you get the same jitters and flashes that I do?
And I will say in advance that this is NOT a timing issue... similar code run in DBPro is rock steady regardless of what fps it's set at.
In fact here's my DBpro code:
Help? Thanks.
P.S. Just made another confirmation... the above code (BB3D) is rock steady at any fps value if I run in windowed mode but not if I run in fullscreen mode. What the heck? And it's MANY times faster in windowed mode too compared to fullscreen... seriously what the heck?
I've already made two topics that discuss jitters but now I've clearly identified the problem. Please note that this problem does NOT occur with my DBPro programs, so it's not a display setup issue. It is also NOT a timing issue, I've used fixed framerates from 15-120 in DBPro and DBC and I've never ever had this problem.
If I use frame limiting (various techniques) on my 2D or 3D programs in BB3D, and if I use any fps setting other than 60fps, my screen "jitters" and occasionally "flashes" black. Why?
My display is set to "application preference" for vsync. I get flashes whether I use flip true or flip false or any of the other combinations. This is not a "tearing" issue, I know what tearing looks like and this is not it.
Here, please try this simple code...
Graphics 1024,768,32,0 SetBuffer BackBuffer() SeedRnd MilliSecs() While Not KeyHit(1) count# = MilliSecs() .pattern1 Color Rnd(0,255),Rnd(0,255),Rnd(0,255) Plot Rnd(0,1023),Rnd(0,767) If MilliSecs()-count# < 1000/60 Then Goto pattern1 Flip True Wend
This code runs nice and smooth with no jitters as long as debug mode is turned off.
If you change the 60 value in "If MilliSecs()-count# < 1000/60" to anything significantly less than 60... try 50, 40 or 30, please tell me if you get the same jitters and flashes that I do?
And I will say in advance that this is NOT a timing issue... similar code run in DBPro is rock steady regardless of what fps it's set at.
In fact here's my DBpro code:
Set Display mode 1024,768,32 sync on do count# = timer() pattern1: color=rgb(Rnd(255),Rnd(255),Rnd(255)) ink color,0 Dot Rnd(1023),Rnd(767) If timer()-count# < 1000/60 Then Goto pattern1 sync loop
Help? Thanks.
P.S. Just made another confirmation... the above code (BB3D) is rock steady at any fps value if I run in windowed mode but not if I run in fullscreen mode. What the heck? And it's MANY times faster in windowed mode too compared to fullscreen... seriously what the heck?