Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » [Fixed] TheIde continuously using CPU
Re: TheIde continuously using CPU [message #60153 is a reply to message #60149] |
Thu, 14 September 2023 16:04   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
jjacksonRIAB wrote on Thu, 14 September 2023 12:18Mirek,
If I set it back to Sleep(0) and then change Sleep(100) to Sleep(1000) in IsBackgroundThread() I get a spike of up to 3-5% (22-33% of a core) every few seconds and then it drops back to nothing.
Well, with Sleep(1000) you should be getting spike each 10 seconds (since the last spike).
With Sleep(100), it should be spike every second.
The length of spike should depend basically on the number of files accessible through all your assemblies.
Well, I was thinking this is innocent and that updated data is more important than small spike every second. But we can increase it a bit I guess..
Would Sleep(1000) work for you?
Mirek
[Updated on: Thu, 14 September 2023 16:04] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Aug 01 15:11:35 CEST 2025
Total time taken to generate the page: 0.09264 seconds
|