Tiny jitter in window mode solution?

BlitzMax Forums/BlitzMax Programming/Tiny jitter in window mode solution?

QuickSilva(Posted 2009) [#1]
I am getting a very slight jitter in windowed mode using the default BMax window (also happens with MaxGUI too though). Is this a known problem and is there a way to cure it as it looks slightly unprofessional. I have tried using Flip -1,1 and 0 but with no luck. I am also using a proper timing method now so that is not the problem either.

If you add a simple moving rectangle to the RockOut code that comes with BMax (the GUI one) then you will see the rectangle stuttering.

All works fine in fullscreen mode. My graphics mode is also set to 60 as is my monitor refresh rate so that isn`t the problem.

Any help would be most welcome.

Jason.


TaskMaster(Posted 2009) [#2]
The only time I have seen this is when I did something wrong.

I am going to say what anyone else is going to. Please post some sample code that does this so we can see it.


Grey Alien(Posted 2009) [#3]
One thing, DrawRect doesn't draw at floating point coords, so you'll get some jitter just because it's drawing at integer coords. If you load in an image you can draw that at floating point coords. I would use Flip 1 for VSync. But otherwise I don't know what te problem is.