Build Your Own Arcade Controls Forum

Software Support => GroovyMAME => Topic started by: cybermat on August 09, 2022, 08:46:20 am

Title: Windows Aero off or on ?
Post by: cybermat on August 09, 2022, 08:46:20 am
Hello,
as per my understading, sometimes Windows Aero ON could interfere with "old" windows application, not designed with Aero in mind.

I always put this Aero mode OFF, but lately i struggled to debug an issue i had with Attract Mode and i found out that enabling Aero solved my issue. With fill screen (so not fullscreen) Attract Mode had vsync off and i forced vsync on via Nvidia app panel.

For groovymame on Windows 7, this feature should be On or Off ? According to your experience (windows 7 users) what setting do you suggest ?

Title: Re: Windows Aero off or on ?
Post by: psakhis on August 09, 2022, 03:14:51 pm
Hi,
One of the reasons for W7 vs W10 is aero off. Reduce the latency, this isn't possible with W10.

On the other hand, some apps with backends (d3d11 or vulkan) sometimes needs aero on for vsync purposes.

I have 2 ahk scripts for this

Disable

#NoTrayIcon
DWM_EC_ENABLECOMPOSITION:=1, DWM_EC_DISABLECOMPOSITION:=0
;DllCall("dwmapi\DwmEnableComposition", "uint", false) ; No need for run here.
Run, net stop uxsms, , Hide ; That way there is no cmd window.
;MsgBox, Aero should be off. It should turn back on when 'Ok' is clicked.
; If you want to turn it back on before the program ends, use this:
;DllCall("Dwmapi.dll\DwmEnableComposition", "UInt", DWM_EC_ENABLECOMPOSITION)


Enable

DWM_EC_ENABLECOMPOSITION:=1, DWM_EC_DISABLECOMPOSITION:=0
;DllCall("Dwmapi.dll\DwmEnableComposition", "UInt", DWM_EC_DISABLECOMPOSITION)
;MsgBox, Aero should be off. It should turn back on when 'Ok' is clicked.
; If you want to turn it back on before the program ends, use this:
Run, net start uxsms, , Hide ; That way there is no cmd window.