Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » [Fixed] TheIde continuously using CPU
Re: TheIde continuously using CPU [message #60149 is a reply to message #60148] Thu, 14 September 2023 12:18 Go to previous messageGo to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 221
Registered: June 2011
Experienced Member
Mirek,

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.

IsShutdownThreads only appears to return true at TheIDE exit and the for loop at the end seems to be executing once every second.

Could this be related?

https://stackoverflow.com/questions/1125297/nanosleep-high-c pu-usage

I realize this is from 14 years ago but that code hasn't changed in a very long time either.

[Updated on: Thu, 14 September 2023 13:24]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TheIde UI look/feel/Style redesign
Next Topic: Navigator window - gone?
Goto Forum:
  


Current Time: Sat Jun 08 21:27:47 CEST 2024

Total time taken to generate the page: 0.01324 seconds