IDE Themes and DWM (Desktop Window Manager)

KrispyKreme

New member
I apologize in advance for not having many technical details to provide up front. I am running Delphi in a standard Sandboxie-Plus sandbox on Windows 11. Up until about Delphi version 10.4, there was the option to enable or disable IDE theming. From version 11+, that option is no longer available. With themes disabled everything is quiet and works without issue. However, with IDE themes turned on (which is required now), the application consistently spikes the CPU and I notice that DWM usage is also increased. CPU usage for Delphi is about 50% of one core and DWM is using about 7%. This is constant with no breaks. Outside of a sandbox there are no issues with IDE themese enabled or disabled.

I've tried looking for DWM, GPU, or other graphics related Sandboxie issues and can't seem to find anything that necessarily relates to what I'm seeing. I've tried various things to resolve the issue like, skipdllhook for various DLLs (uxtheme, dwm). I've tried the Sandboxie trace logging but can't seem to pinpoint any issues there. I've also used TaskExplorer and Process Monitor but I'm not seeing anything that translates into what the actual cause is.

So my question is are there certain known considerations with applications that might be invoking themes in certain ways? Is there any rule or setting in Sandboxie I should be looking at that may address the high CPU usage when theming is enabled?
 
Back
Top