GameOverlay.Net icon indicating copy to clipboard operation
GameOverlay.Net copied to clipboard

Flickering

Open Sgamzat05 opened this issue 2 years ago • 4 comments

when drawing a large number of labels, shapes, images, flickering begins How can this be fixed? Maybe There is a double buffer?

Sgamzat05 avatar Oct 02 '23 07:10 Sgamzat05

It's not possible to help you without code. The issue probably is that your code isn't executing fast enough and that cuts down the FPS.

michel-pi avatar Oct 02 '23 07:10 michel-pi

Can i get u discord to share code?

Sgamzat05 avatar Oct 02 '23 20:10 Sgamzat05

or how to use multithreading?

Sgamzat05 avatar Oct 02 '23 23:10 Sgamzat05

Multi Threading isn't your issue. I don't have discord. You can consider refactoring your code. Do not recreate brushes, fonts and images in your loop. Re-use them. Do not run computation heavy code in your drawing thread.

How many different shapes or figures are you drawing? How often do you call drawing methods in your loop? 100? 1000? 10000?

michel-pi avatar Oct 03 '23 19:10 michel-pi