You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I got following results :
gpu : no memory leak
opengles2 : memory leak reported by the sanitizer
vulkan : non memory leak
software : memory leak reported by the sanitizer
I run on a Debian 12, with SDL3.2.8.
The text was updated successfully, but these errors were encountered:
FWIW, with RenderDriver "direct3d11" and VideoDriver "windows", for the same example code left running obscured by other windows, I see a slow & steady increase in Unresolved allocations according to VS2022's heap profiling & snapshots features.
The stack traces say the allocations come from line 2617 of SDL_render_d3d11.c, the IDXGISwapChain1_Present1() call, and the tip of the trace ends with ntdll.dll!0x7ffc701db5d4(). Most often these are 24, 4104, 4111 or 19295 bytes.
Edit: possibly more interestingly, when I set VS to Release instead of Debug, the debugger/diagnostic tools blames the same Unresolved allocs pattern on line 2623, ID3D11DeviceContext1_DiscardView(data->d3dContext, (ID3D11View *)data->mainRenderTargetView);
compiling with
gcc clear.c -o clear -Wall -Wextra -fsanitize=address `pkg-config --cflags --libs sdl3` -g
the first sample : https://examples.libsdl.org/SDL3/renderer/01-clear/
lead to memory leaks
So I modified the code to display available renderDriver :
Available RenderDriver name: opengles2
Available RenderDriver name: vulkan
Available RenderDriver name: gpu
Available RenderDriver name: software
I test all of them by modifying the SDL_APPinit as following :
And I got following results :
gpu : no memory leak
opengles2 : memory leak reported by the sanitizer
vulkan : non memory leak
software : memory leak reported by the sanitizer
I run on a Debian 12, with SDL3.2.8.
The text was updated successfully, but these errors were encountered: