This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing 100% CPU Usage  RSS feed

 
RJ Nowling
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My group and I are writing a config form viewer such that developers can create an instance of it, then add various questions types to it. However we're having a problem where it's consuming massive amounts of CPU usage.

So... we're wondering if there are any common "gotcha's" for writing GUIs to look for in reference to CPU usage.

Thanks.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm... not without more information about what's being done...

Is there a certain screen, or certain activity that causes the CPU usage to go up? Have you tried running the code in a profiler? (If you're using JDK 5.0+ you don't even need a separate profiler - just some command line options...)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!