Windows Resize Event Delay
Author: voidwareCreated Jul 8, 2023Updated Aug 12, 2026
Labelssokol-appwindows
Currently it appears I dont see the RESIZED event until the main window resize drag is complete.
There's a note in the code here to explain it;
/* NOTE: resizing the swap-chain during resize leads to a substantial
memory spike (hundreds of megabytes for a few seconds).
if (_sapp_win32_update_dimensions()) {
#if defined(SOKOL_D3D11)
_sapp_d3d11_resize_default_render_target();
#endif
_sapp_win32_app_event(SAPP_EVENTTYPE_RESIZED);
}
break;
*/Is this only a problem with D3D11?
I tried putting this code back in and my app now resizes smoothly and I'm not seeing a memory spike (win 10/ -DSOKOL_GLCORE33).
What is the backstory here. Older windows versions? Drivers?
Or is this something that can actually be put back in now?
thanks for any help and info.
Source: floooh/sokol