Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Poor Java swing performance on older PC
New Posts  All Forums:Forum Nav:

Poor Java swing performance on older PC - Page 2

post #11 of 16
What model of P4 are you running? I'm guessing a Cedar Mill?
post #12 of 16
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

What model of P4 are you running? I'm guessing a Cedar Mill?

I'll double-check tonight. I only know modern CPUs off-hand. Haven't been into building PCs that long.

Any thoughts on unlocking an OEM bios, can it be done? Or reflashing?
Edited by JoeChamberlain - 5/28/13 at 8:52am
For Gaming
(18 items)
 
For Working
(8 items)
 
For Serving
(8 items)
 
CPUMotherboardGraphicsRAM
AMD FX-8350 @ 4.6 Ghz ASUS M5A97-PRO Sapphire R9 290X Tri-X 4GB @ 1170/1475 8GB Corsair Vengeance Blue LP DDR3 2133 Mhz 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 SSD 128 GB Toshiba SATA III 2TB SAMSUNG DVDRW Corsair H60 
OSMonitorKeyboardPower
Windows 10 Pro 64 Bit Asus MG279Q 27" FreeSync WQHD 144hz IPS Corsair K70 LUX RGB Cherry MX Red Corsair CX750M 
CaseMouseAudioAudio
Cooler Master Elite 430 Corsair Vengeance M65 Alesis iO2 Express Audio Interface Wharfedale Pro Diamond 8.2 Active Studio Monitors 
Audio
Corsair Vengeance 1500 v2 7.1 Dolby Headset 
CPUGraphicsRAMHard Drive
Intel Core i7-3740QM CPU @ 2.70 Ghz NVidia Quadro K1000M 2GB 32GB DDR3 500GB 7200RPM 
Optical DriveOSMonitorOther
Slot DVDRW Windows 7 64-Bit 1080p Built in Display Dell Precision M4700 
  hide details  
Reply
For Gaming
(18 items)
 
For Working
(8 items)
 
For Serving
(8 items)
 
CPUMotherboardGraphicsRAM
AMD FX-8350 @ 4.6 Ghz ASUS M5A97-PRO Sapphire R9 290X Tri-X 4GB @ 1170/1475 8GB Corsair Vengeance Blue LP DDR3 2133 Mhz 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 SSD 128 GB Toshiba SATA III 2TB SAMSUNG DVDRW Corsair H60 
OSMonitorKeyboardPower
Windows 10 Pro 64 Bit Asus MG279Q 27" FreeSync WQHD 144hz IPS Corsair K70 LUX RGB Cherry MX Red Corsair CX750M 
CaseMouseAudioAudio
Cooler Master Elite 430 Corsair Vengeance M65 Alesis iO2 Express Audio Interface Wharfedale Pro Diamond 8.2 Active Studio Monitors 
Audio
Corsair Vengeance 1500 v2 7.1 Dolby Headset 
CPUGraphicsRAMHard Drive
Intel Core i7-3740QM CPU @ 2.70 Ghz NVidia Quadro K1000M 2GB 32GB DDR3 500GB 7200RPM 
Optical DriveOSMonitorOther
Slot DVDRW Windows 7 64-Bit 1080p Built in Display Dell Precision M4700 
  hide details  
Reply
post #13 of 16
Quote:
Originally Posted by Plan9 View Post

Is your Atom a weaker CPU though? It's quite significantly newer than a Pentium 4 and comparing CPU frequencies is a pretty inaccurate gauge of performance across different architectures.

Plus what OS are you running on your Atom?
Windows 7.

The comparison I had was that my home server used to be a p4 @2.8 and I remember the CPU was much more powerful than this very same atom.

I got rig of the p4 because it had no case and now my home server is this little n270 machine.

I'm sure both your CPU and ram are more than capable of running swing applications, even when multitasking. Check your task manager!



Edit: is it only the scrolling that is laggy? Are you scrolling clicking on the interface or using a touchpad or wheel?
Edited by EduFurtado - 5/28/13 at 9:19am
post #14 of 16
Thread Starter 
Oh dear. I must hold my hands up and tell you I've solved it. It's due to me being a Java noob!

The overridden paint method for the JPanel contained complex code in order to draw the gridlines, I didn't know paint was called for each scroll increment! I thought it was just called once and not when you scroll. To fix it, I just done the work outside the paint method assigning needed values to instance variables, which is called once! I'm still on a Java course currently, so be gentle!

My CPU performance on a i3 has gone from 40% usage when scrolling to just 1%... It scrolls like a dream and I'm certain it will work OK on the P4.

All this goes to show that I should have made the effort to post the code after all. I have indeed been taught a lesson.

Apologies for wasting your time... rolleyes.gif
Edited by JoeChamberlain - 5/29/13 at 6:40am
For Gaming
(18 items)
 
For Working
(8 items)
 
For Serving
(8 items)
 
CPUMotherboardGraphicsRAM
AMD FX-8350 @ 4.6 Ghz ASUS M5A97-PRO Sapphire R9 290X Tri-X 4GB @ 1170/1475 8GB Corsair Vengeance Blue LP DDR3 2133 Mhz 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 SSD 128 GB Toshiba SATA III 2TB SAMSUNG DVDRW Corsair H60 
OSMonitorKeyboardPower
Windows 10 Pro 64 Bit Asus MG279Q 27" FreeSync WQHD 144hz IPS Corsair K70 LUX RGB Cherry MX Red Corsair CX750M 
CaseMouseAudioAudio
Cooler Master Elite 430 Corsair Vengeance M65 Alesis iO2 Express Audio Interface Wharfedale Pro Diamond 8.2 Active Studio Monitors 
Audio
Corsair Vengeance 1500 v2 7.1 Dolby Headset 
CPUGraphicsRAMHard Drive
Intel Core i7-3740QM CPU @ 2.70 Ghz NVidia Quadro K1000M 2GB 32GB DDR3 500GB 7200RPM 
Optical DriveOSMonitorOther
Slot DVDRW Windows 7 64-Bit 1080p Built in Display Dell Precision M4700 
  hide details  
Reply
For Gaming
(18 items)
 
For Working
(8 items)
 
For Serving
(8 items)
 
CPUMotherboardGraphicsRAM
AMD FX-8350 @ 4.6 Ghz ASUS M5A97-PRO Sapphire R9 290X Tri-X 4GB @ 1170/1475 8GB Corsair Vengeance Blue LP DDR3 2133 Mhz 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 SSD 128 GB Toshiba SATA III 2TB SAMSUNG DVDRW Corsair H60 
OSMonitorKeyboardPower
Windows 10 Pro 64 Bit Asus MG279Q 27" FreeSync WQHD 144hz IPS Corsair K70 LUX RGB Cherry MX Red Corsair CX750M 
CaseMouseAudioAudio
Cooler Master Elite 430 Corsair Vengeance M65 Alesis iO2 Express Audio Interface Wharfedale Pro Diamond 8.2 Active Studio Monitors 
Audio
Corsair Vengeance 1500 v2 7.1 Dolby Headset 
CPUGraphicsRAMHard Drive
Intel Core i7-3740QM CPU @ 2.70 Ghz NVidia Quadro K1000M 2GB 32GB DDR3 500GB 7200RPM 
Optical DriveOSMonitorOther
Slot DVDRW Windows 7 64-Bit 1080p Built in Display Dell Precision M4700 
  hide details  
Reply
post #15 of 16
Quote:
Originally Posted by JoeChamberlain View Post

Oh dear. I must hold my hands up and tell you I've solved it. It's due to me being a Java noob!

The overridden paint method for the JPanel contained complex code in order to draw the gridlines, I didn't know paint was called for each scroll increment! I thought it was just called once and not when you scroll. To fix it, I just done the work outside the paint method assigning needed values to instance variables, which is called once! I'm still on a Java course currently, so be gentle!

My CPU performance on a i3 has gone from 40% usage when scrolling to just 1%... It scrolls like a dream and I'm certain it will work OK on the P4.

All this goes to show that I should have posted the code after all. I have indeed been taught a lesson.

Apologies for wasting your time... rolleyes.gif

Glad you got it sorted and I'm glad I was wrong about the hardware requirements. smile.gif
post #16 of 16
Quote:
Originally Posted by JoeChamberlain View Post

Oh dear. I must hold my hands up and tell you I've solved it. It's due to me being a Java noob!

The overridden paint method for the JPanel contained complex code in order to draw the gridlines, I didn't know paint was called for each scroll increment! I thought it was just called once and not when you scroll. To fix it, I just done the work outside the paint method assigning needed values to instance variables, which is called once! I'm still on a Java course currently, so be gentle!

My CPU performance on a i3 has gone from 40% usage when scrolling to just 1%... It scrolls like a dream and I'm certain it will work OK on the P4.

All this goes to show that I should have made the effort to post the code after all. I have indeed been taught a lesson.

Apologies for wasting your time... rolleyes.gif


Dup!

Good think you sorted it out. I didn't think of telling you to check the code because I thought it wasn't yours and you only had the binary application.
I guess the fact that only the scrolling was slow should have given away the problem.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Poor Java swing performance on older PC