
From the task manager, if the app is launched with -ui the CPU remain at 25% busy! while without -ui is near 0%....
Salut,
Josep M
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
If that's idle time you might want to double-check for any timers or other periodic tasks. While the IDE and GUI support in general takes much more RAM than running facelessly, I don't believe the IDE itself uses any timers that should be eating CPU time like that. Here (though on Ubuntu rather than Windows) LC uses 0% CPU time on idle, as it did on Mac last time I checked.JosepM wrote:From the task manager, if the app is launched with -ui the CPU remain at 25% busy! while without -ui is near 0%....
I know for sure that I had StandAlones on Windows that wouldn't quit properly when called using "-ui", and I'm sure their job was done (they write files), and nothing more to do but to quit. Tried some of these, but couldn't reproduce, for sure.FourthWorld wrote:If that's idle time you might want to double-check for any timers or other periodic tasks.JosepM wrote:From the task manager, if the app is launched with -ui the CPU remain at 25% busy! while without -ui is near 0%....
Interesting, tried with a little SA (5MB on disk with all files) that reads & decrypts its prefs, fetches a file from FTP, then renames some files, finally writes the FTP-file to disk and quits.FourthWorld wrote:While the IDE and GUI support in general takes much more RAM than running facelessly, [...]
Maybe a problem of the Windows implementation?FourthWorld wrote:Here (though on Ubuntu rather than Windows) LC uses 0% CPU time on idle, as it did on Mac last time I checked
This sounds like a bug. Whether it's in Windows, LiveCode, or your code is hard to say, but I'd start in inverse order of the number of people testing the code.AxWald wrote:I know for sure that I had StandAlones on Windows that wouldn't quit properly when called using "-ui", and I'm sure their job was done (they write files), and nothing more to do but to quit. Tried some of these, but couldn't reproduce, for sure.
But I think to remember that I had something similar with my socketserver too. Runs as a faceless service on a Win2K3 server, and when I started it with "-ui" it would constantly hog the CPU. I may try this again at the weekend when I can play with it ...
...
RAM usage/ time until gone: *1)On a Win 7-64, LC community 6.7.1
- With "-ui": ~6MB RAM/ ~20 secs,
- w/o "-ui": ~7MB RAM/ ~6 secs.
I'd rather have it run minimized
...
*1): Update:
This SA can be started with the shiftkey down, then it populates its fields (for setting prefs) and stays open. Else it doesn't touch any fields, only does its work and quits. Now I changed it so that it always populates its fields. (= forced GUI operation)
The RAM/ time values didn't change, only the time needed to quit with "-ui" is even longer, 30 sec.