Open jopp532 opened 1 year ago
I see the same problem: in most games running inside Sandboxie, I observe a FPS drop compared to launching it outside the sandbox. Often, these drops are quite random (lasting only a few frames).
While investigating this problem, I noticed a difference in GPU usage when the game is running in the sandbox and when it’s running outside:
Here's a graph illustrating this GPU usage in the sandbox:
I'm similarly having an issue with my GPU being accessed by Photoshop in a sandbox:
As you can see, Photoshop is properly detecting my installed GPU, but it can't access OpenGL or OpenCL. Running it in a green Compartment sandbox makes no difference.
@davidxanatos I don't suppose there are any straightforward configs to provide broader access to graphics drivers, are there?
fyi, my config is:
[GlobalSettings]
Template=WindowsRasMan
Template=OfficeClickToRun
Template=OfficeLicensing
Template=WindowsLive
Template=WindowsDefender
ForceDisableSeconds=600000
Template=Chrome_KB5027231_fix
Template=Avast_Antivirus
Template=Edge_Fix
OpenClsid={D713F357-7920-4B91-9EB6-49054709EC7A}
DisableWinNtHook=CreateEnclave
DisableWinNtHook=LoadEnclaveData
DisableWinNtHook=InitializeEnclave
DisableWinNtHook=CallEnclave
DefaultBox=DefaultBox
FileRootPath=\??\%SystemDrive%\Sandbox\%USER%\%SANDBOX%
KeyRootPath=\REGISTRY\USER\Sandbox_%USER%_%SANDBOX%
IpcRootPath=\Sandbox\%USER%\%SANDBOX%\Session_%SESSION%
SandboxieLogon=y
EditAdminOnly=y
ForceDisableAdminOnly=y
ExternalManifestHack=msedge.exe,y
NoRestartOnPCA=y
ApproveWinNtSysCall=LoadKeyEx
FakeAdminRights=explorer.exe,n
WriteFilePath=explorer.exe,%ProgramData%\Microsoft\Windows\AppRepository\Packages\Microsoft.UI.Xaml.CBS_*__8wekyb3d8bbwe\machine.pckgdep
FuncSkipHook=NtOpenSymbolicLinkObject
[AdobeBox]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%Desktop%
RecoverFolder=%Personal%
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
BorderColor=#00ffff,ttl,6
Template=AutoRecoverIgnore
Template=LingerPrograms
Template=BlockPorts
Template=qWave
Template=FileCopy
Template=SkipHook
Template=OpenBluetooth
Template=Intel_HD_Graphics
ConfigLevel=10
BreakoutProcess=acrobat.exe
BreakoutProcess=betterbird.exe
BreakoutProcess=firefox.exe
OpenPipePath=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\*
ApproveWinNtSysCall=LoadKeyEx
DropAdminRights=y
FakeAdminRights=y
OpenPrintSpooler=y
AllowSpoolerPrintToFile=y
AllowRawDiskRead=y
NotifyDirectDiskAccess=y
ForceProcess=photoshop.exe
ForceProcess=premiere.exe
ForceProcess=illustrator.exe
ForceProcess=audition.exe
RpcMgmtSetComTimeout=n
NotifyInternetAccessDenied=n
ClosedFilePath=!<InternetAccess>,InternetAccessDevices
EnableWin32kHooks=n
OpenDevCMApi=y
NeverDelete=y
NeverRemove=y
ClosedFilePath=!firefox.exe,\Device\RawIp
ClosedFilePath=!firefox.exe,\Device\Ip*
ClosedFilePath=!firefox.exe,\Device\Tcp*
ClosedFilePath=!firefox.exe,\Device\Afd*
Describe what you noticed and did
I tested many games and most of them had lower performance when running inside Sandboxie. The problem is fixed once you disable Security Isolation inside Sandboxie but I'd like to know if there's a way to fix this without disabling that option.
Two examples of my issue: Borderlands 300 FPS (outside Sandboxie or with Security Isolation disabled) 140 FPS (inside Sanboxie)
Supraland 200 FPS (outside) 100 FPS (inside)
Many other games also have the same issue but games with high fps (100+) are the ones in which you can see a huge difference.
I checked CPU and GPU usage while running in and out of sandboxie and I had almost the same usage on both tests. Neither of them was near 100% usage during these tests. I also tried a new Sandboxie and Windows installation and the problem persisted.
How often did you encounter it so far?
No response
Affected program
Seems to happen in all games that have high FPS
Download link
N/A
Where is the program located?
The program is installed both inside and outside the sandbox.
Expected behavior
Games should run at higher FPS
What is your Windows edition and version?
Windows 11 22H2
In which Windows account you have this problem?
Not relevant to my request.
Please mention any installed security software
Microsoft Defender
What version of Sandboxie are you running?
Sandboxie 1.9.2
Is it a new installation of Sandboxie?
I recently did a new clean installation.
Is it a regression?
No response
In which sandbox type you have this problem?
In a standard isolation sandbox (yellow sandbox icon).
Can you reproduce this problem on a new empty sandbox?
I can confirm it also on a new empty sandbox.
Did you previously enable some security policy settings outside Sandboxie?
No response
Crash dump
No response
Trace log
No response
Sandboxie.ini configuration
No response