Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run gimx.exe with elevated privileges to improve timer accuracy #480

Closed
matlo opened this issue Oct 6, 2017 · 4 comments
Closed

Run gimx.exe with elevated privileges to improve timer accuracy #480

matlo opened this issue Oct 6, 2017 · 4 comments
Labels
Milestone

Comments

@matlo
Copy link
Owner

matlo commented Oct 6, 2017

When enabling "Run as administrator" in the compatibility options for gimx.exe, the following registry entry gets created:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
REG_SZ C:\Program Files\GIMX\gimx.exe RUNASADMIN
@matlo matlo added this to the GIMX 8.0 milestone Sep 19, 2019
@matlo matlo added the GIMX 8.0 label Sep 19, 2019
@matlo
Copy link
Owner Author

matlo commented Sep 19, 2019

Elevated privileges allow setting the realtime priority class that improves timer accuracy when combined with using thread affinity.

@matlo matlo changed the title Check if admin priviledges can improve performances on Windows Run gimx.exe with elevated privileges to improve time accuracy Sep 19, 2019
@matlo matlo changed the title Run gimx.exe with elevated privileges to improve time accuracy Run gimx.exe with elevated privileges to improve timer accuracy Sep 19, 2019
@matlo
Copy link
Owner Author

matlo commented Sep 20, 2019

The following inno setup entry sets in the registry to run gimx.exe as administrator:
Root: HKLM; Subkey: "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: string; ValueName: "{app}\gimx.exe"; ValueData: "RUNASADMIN"
but it looks better to leave the choice to the user.

@matlo
Copy link
Owner Author

matlo commented Sep 20, 2019

There does not seem to be any equivalent to Linux's root suid (that allows to run a binary as the file owner).

@matlo
Copy link
Owner Author

matlo commented Oct 4, 2019

Fixed on the gimxfile branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant