Open 9ary opened 4 years ago
how do we fix this
@expectocode by losing the game
@9ary Isn't it because we are reallocating memory every time?
No, it's because we're redrawing way too fast.
@9ary should we limit the redraw rate to 60 fps?
It's not that simple, we need to do vsync somehow but that's not exactly easy with xshape. The alternative is drawing with opengl or xrender, where it's easy to do vsync, but that requires a compositor. slop dumbly throttles drawing like you suggest which reduces tearing but doesn't entirely remove it.
The guides and selection appear to redraw much faster than vsync which leads to wobbly diagonal lines in pieces.