neXromancers / hacksaw

hacksaw (Select Operation)
Mozilla Public License 2.0
90 stars 7 forks source link

Wobbliness/tearing #9

Open 9ary opened 4 years ago

9ary commented 4 years ago

The guides and selection appear to redraw much faster than vsync which leads to wobbly diagonal lines in pieces.

expectocode commented 4 years ago

how do we fix this

9ary commented 4 years ago

@expectocode by losing the game

pickfire commented 4 years ago

@9ary Isn't it because we are reallocating memory every time?

9ary commented 4 years ago

No, it's because we're redrawing way too fast.

pickfire commented 4 years ago

@9ary should we limit the redraw rate to 60 fps?

9ary commented 4 years ago

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.