T
T
Toster_someone2020-06-16 21:32:56
C++ / C#
Toster_someone, 2020-06-16 21:32:56

Why does memory and GPU load increase when minimizing a window created via SDL2?

Good afternoon, I encountered such a problem that when minimizing a window created through SDL2, the memory is clogged up to 1 GB and the GPU up to 90%, but when the window is re-deployed, the load drops.

In terms of code, it is standard, as from any simple tutorial on creating windows and a canvas.
And such problem happens if in a cycle something is drawn.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petryaev, 2020-06-17
@Gremlin92

In such a code, in an endless loop, one core will be loaded to the fullest without even minimizing the window, do you have Windows or Linux, poppy?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question