KierannCode / Playground

Project about creating a game engine with SDL from scratch, this is for fun and for my personal experience only
0 stars 0 forks source link

Warnings while resizing window #1

Open KierannCode opened 2 years ago

KierannCode commented 2 years ago

The rendering thread generates warnings when the surface is resized.

This is due to concurrency problems, when the window surface is resized and the rendering thread tries to display a new frame.

SDL doesn't provides any known mean to know whether or not the surface is being resized, it only provides the information after the resizing occurred.

One solution may be to use SDL_Renderer structure instead, which may be thread-safe.

KierannCode commented 2 years ago

This issue may be solved along #2