openscad / openscad

OpenSCAD - The Programmers Solid 3D CAD Modeller
https://www.openscad.org
Other
7.02k stars 1.21k forks source link

Registry key 'control Panel\Desktop'? #497

Closed MichaelAtOz closed 10 years ago

MichaelAtOz commented 11 years ago

While looking into other issues, I happened to run OpenSCAD with Process Monitor

When starting OpenSCAD, after a lot of other stuff, immediately before being ready to accept user input, it had hundreds of:

08:52:51.0252321    openscad.exe    6036    RegOpenKey  HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop  NAME NOT FOUND  Desired Access: Read

Subseqent activity also referenced the registry key frequently.

Any idea what it is looking for in/under Desktop?

kintel commented 11 years ago

This might be some stuff going on internally in Qt. Qt uses Windows registry for application preferences. Perhaps looking for recent files or smth.?

A quick Google didn't tell me much. Perhaps you could try removing/editing the OpenSCAD registry settings and see if that changes the behavior?

MichaelAtOz commented 11 years ago

OpenSCAD settings are in/under: HKCU\Software\OpenSCAD\OpenSCAD e.g. HKCU\Software\OpenSCAD\OpenSCAD\advanced\openCSGLimit
HKCU\Software\OpenSCAD\OpenSCAD\recentFileList

It is trying: HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop & HKLM\Software\Policies\Microsoft\Windows\Control Panel\Desktop (it tries both)

I progressively added the items to my registry.

It is looking for: HKLM\SOFTWARE\Policies\Microsoft\Windows\Control Panel\New Key #1\FontSmoothingGamma & HKCU\Software\Policies\Microsoft\Windows\Control Panel\New Key #1\FontSmoothingGamma (New Key #1 - is what registry editor defaults when adding a key, so it is dodgy) It tries ~300 times (ie ~150 each of above), when OpenSCAD is started. It tries ~72 times, just clicking the file menu.

Seems to be related to cleartype fonts, but they are usually in: HKEY_CURRENT_USER\Control Panel\Desktop which OpenSCAD does not access.

So I put this down to a mis-config in QT somewhere. I have not noticed any font issues, so leave sleeping flea-bug-infested dogs lie.