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

Improving rendering performances using SDL_Renderer #2

Open KierannCode opened 2 years ago

KierannCode commented 2 years ago

The rendering thread becomes very slow with any software when the window is maximized.

This is mainly due to the fact that the rendering is done on a local surface which is copied on the window, and must be done on every frame.

A solution is to use SDL_Renderer structure to render directly on the window surface if possible.

KierannCode commented 2 years ago

The resolution of this issue may solve #1