Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Flickering when drawing to other windows?

A topic by marcyluvy created 27 days ago Views: 28 Replies: 1
Viewing posts 1 to 2
(1 edit)

I have two extra views set up, which first draw to a surface, then the surface draws to the window in the post draw event. The sprites inside of those views flicker quite a lot, and I can't figure out why. I use winwin_draw_clear before anything is drawn to clear the window, and then also clear the surface after it has been drawn. Drawn text also seems to flicker.

https://cdn.discordapp.com/attachments/1329990445190742099/1404216808726331615/2...

Developer

Hard to tell from that alone (compare to tests in the example project?), but if I were to guess, something like this would happen if you were to call winwin_draw_end multiple times per frame as the call asks Windows to flush the new pixels into the window.