Author Topic: PCB redraw slow on new machine  (Read 14268 times)

0 Members and 1 Guest are viewing this topic.

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
PCB redraw slow on new machine
« on: August 05, 2015, 11:58:46 am »
I use PCAD2006. (I'm not expecting many PCAD experts out there, but guessing this may be some generic problem running older applications on newer grahics hardware. )

 I've just upgraded my PC to a recent spec with Win7 x64, 4 monitors, 2 on onboard Intel 4600, 2 on an Nvidia G210 board.

While most things are a lot faster, including  compute-heavy stuff like DRC and recalculating fills, time to redraw  complex boards when panning & zooming is about 4x slower.

I've tried running the system only on the onboard graphics, and only on the Nvidea, and with one monitor with no difference.

2D graphics benchmarks show between 4 and 10x improvement on the new machine, apart from complex vectors whjich are only 10% faster.

I know it's not a win7 or 64 bit thing as it runs fine on my laptop.

Any clues as to what to look at in terms of settings etc. ?
Are there any tools to help analyse graphics issues like this?
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline dr.diesel

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: us
  • Cramming the magic smoke back in...
Re: PCB redraw slow on new machine
« Reply #1 on: August 05, 2015, 12:07:20 pm »
What's the resolution of the 4 monitors?  You're probably asking way too much for 4 monitors on IPC IGP graphics and the really old G210.
« Last Edit: August 05, 2015, 12:31:10 pm by dr.diesel »
 

Offline wraper

  • Supporter
  • ****
  • Posts: 16863
  • Country: lv
Re: PCB redraw slow on new machine
« Reply #2 on: August 05, 2015, 12:17:40 pm »
Integrated HD 4600 is much faster than G210, which is really old, and frankly saying was below the bottom end even when just came out  :--
 

Offline wraper

  • Supporter
  • ****
  • Posts: 16863
  • Country: lv
Re: PCB redraw slow on new machine
« Reply #3 on: August 05, 2015, 12:26:40 pm »
Did you try with and without Aero enabled?
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7377
  • Country: nl
  • Current job: ATEX product design
Re: PCB redraw slow on new machine
« Reply #4 on: August 05, 2015, 12:43:11 pm »
Update DirectX to the newest version, even PCAD doesnt use it, a compatibility layer might or it can be even DirectDraw. Update also the graphich drivers for both cards. And I would try to run it on a virtual machine with XP or in compatibility mode.
 

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
Re: PCB redraw slow on new machine
« Reply #5 on: August 05, 2015, 12:54:12 pm »
Already not using an aero theme, no difference with one.
Monitors are all 1600x1200, but makes no difference running just one monitor.
There is no noticeable difference when running fullscreen on a monitor connected to the onboard vs, the Nvidia.

Further reading suggests that apps that use GDI for drawing are often slower on W7 as W7 uses the CPU more than hardware acceleration for 2D.

http://www.tomshardware.co.uk/2d-windows-gdi,review-31795.html
http://www.neowin.net/forum/topic/1036369-did-you-know-all-gdi-apps-render-slower-under-win7/

Looking again at speed on my laptop, it's of a similar order to the new machine, so  it seems that may explain a lot of the difference.

So it looks like Win7 sucks for running older 2D graphics applications.

The above article does suggest that some cards' drivers may be better than others at 2D acceleration.

the reason for using the Nvidia 210 was it seemed a cheap way to get the extra 2 monitors, and I didn't need turbo-nutter 3d preformance with ridiculous cooling.   
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
Re: PCB redraw slow on new machine
« Reply #6 on: August 05, 2015, 12:55:31 pm »
Update DirectX to the newest version, even PCAD doesnt use it, a compatibility layer might or it can be even DirectDraw. Update also the graphich drivers for both cards. And I would try to run it on a virtual machine with XP or in compatibility mode.
Already tried compatibility mode. Surely running in  VM would still hit the W7 graphics bottleneck?
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
Re: PCB redraw slow on new machine
« Reply #7 on: August 05, 2015, 01:54:31 pm »
It's only an annoyance on very complex boards, which I don't do very often - might try doing a W8 install on another disk to compare if I get a chance, but not being able to use unsigned driers is probably going to be more annoying overall.


Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
Re: PCB redraw slow on new machine
« Reply #8 on: August 05, 2015, 03:57:32 pm »
Reading some more, it seems that WDDM1.1 re-enables 2D HW acceleration, and I've confirmed using dxdiag that both  graphics cards are using 1.1

Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3383
  • Country: us
Re: PCB redraw slow on new machine
« Reply #9 on: August 05, 2015, 04:18:06 pm »
If it's a semi-dedicated ECAD machine, why not go with the flow and keep running WinXP?

If the motherboard you bought doesn't support it, you could get a Core i5-2500K or i7-2600K instead, and get great performance with WinXP.

BTW, even fairly fast 3D video cards have reasonable power requirements if you only do 2D with them.
 

Offline Wilksey

  • Super Contributor
  • ***
  • Posts: 1329
Re: PCB redraw slow on new machine
« Reply #10 on: August 05, 2015, 04:23:53 pm »
Did you physically remove the G210?

What graphics chipset is on your laptop (which you say runs well)?

Could it be a VRAM issue with the onboard graphics? Can you allocate more memory to it?

On my laptop I can select the integrated graphics chip for running office or such, and the "high performance" nvidia chipset for running games etc.

Just wondering if there is a clash somewhere with the drivers.
 

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
Re: PCB redraw slow on new machine
« Reply #11 on: August 05, 2015, 04:42:59 pm »
Did you physically remove the G210?
Yes.
Quote
What graphics chipset is on your laptop (which you say runs well)?
Re-testing it's actually fairly similar to the desktop.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline xygor

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: PCB redraw slow on new machine
« Reply #12 on: August 05, 2015, 08:13:23 pm »
Update DirectX to the newest version, even PCAD doesnt use it, a compatibility layer might or it can be even DirectDraw. Update also the graphich drivers for both cards. And I would try to run it on a virtual machine with XP or in compatibility mode.
Already tried compatibility mode. Surely running in  VM would still hit the W7 graphics bottleneck?
Don't know if it's the same problem, but for me, Cadint refreshes the screen considerably (several octaves) faster in VirtualBox on the same machine (Win7-64).  The virtual machine is WinXP-32.
 

Offline IanJ

  • Supporter
  • ****
  • Posts: 1608
  • Country: scotland
  • Full time EE & Youtuber
    • IanJohnston.com
Re: PCB redraw slow on new machine
« Reply #13 on: August 05, 2015, 10:17:20 pm »
Mike,

In Win7 have you tried XP (SP3) compatibility mode (right click shortcut):
- Check Disable visual themes
- Check Disable desktop composition
- Check Disable display scaling on high DPI settings

Also try:
Open control panel and click on System then click on Advanced System Settings to bring up the System Properties window then select the Advanced tab then click the Settings button in the Performance pane to bring up the Performance Options window under here check Adjust for best performance click Apply, wait for setting to apply it can take some time then click OK.

Also if none of the above works you might want to re-install Direct X as Win 7,8,10  comes with an incomplete/stripped down version of Direct X which only caters for new stuff.
The full directx can be got here http://www.microsoft.com/en-us/download/details.aspx?id=8109

Ian.
Ian Johnston - Original designer of the PDVS2mini || Author of the free WinGPIB app.
Website - www.ianjohnston.com
YT Channel (electronics repairs & projects): www.youtube.com/user/IanScottJohnston, Twitter (X): https://twitter.com/IanSJohnston
 

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
Re: PCB redraw slow on new machine
« Reply #14 on: August 06, 2015, 08:29:46 am »
Mike,

In Win7 have you tried XP (SP3) compatibility mode (right click shortcut):
- Check Disable visual themes
- Check Disable desktop composition
- Check Disable display scaling on high DPI settings
Already tried that
Quote
Also try:
Open control panel and click on System then click on Advanced System Settings to bring up the System Properties window then select the Advanced tab then click the Settings button in the Performance pane to bring up the Performance Options window under here check Adjust for best performance click Apply, wait for setting to apply it can take some time then click OK.
No difference
Quote
Also if none of the above works you might want to re-install Direct X as Win 7,8,10  comes with an incomplete/stripped down version of Direct X which only caters for new stuff.
The full directx can be got here http://www.microsoft.com/en-us/download/details.aspx?id=8109

Ian.
No difference.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9946
  • Country: nz
Re: PCB redraw slow on new machine
« Reply #15 on: August 06, 2015, 09:05:51 am »
Could try changing the PCAD task priority to realtime.
Probably wont work but easy to test.

Maybe also try dropping the color depth to 16bit, see if that has an effect.
Hell, even 256 colors would be fine as a temporary change when working on PCBs
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
Re: PCB redraw slow on new machine
« Reply #16 on: August 06, 2015, 09:34:53 am »
Could try changing the PCAD task priority to realtime.
Probably wont work but easy to test.
how?
Quote
Maybe also try dropping the color depth to 16bit, see if that has an effect.
Hell, even 256 colors would be fine as a temporary change when working on PCBs

No difference.
As it's mostly obvious on designs with a huge number of vectors (like maybe 20-30K) I'm wondering if its not so much draw speed but some overhead on each draw operation.
I don't know much about how graphics in Windows works, but something I do notice is that when it redraws everything prior to display (like on startup or if I change between quick and normal mode in PCAD, which switches between solid lines and outlines), it's quite a lot faster than for a zoom/pan redraw where you see elements being progressively drawn onscreen.
I wonder if there is some sort of pipelining/buffering issue where it's drawing into a buffer then copying to the display on every vector, rather than drawing directly into the screen buffer.

Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9946
  • Country: nz
Re: PCB redraw slow on new machine
« Reply #17 on: August 06, 2015, 09:41:07 am »
Could try changing the PCAD task priority to realtime.
Probably wont work but easy to test.
how?

Task manager
Processes tab
Find the PCAD application exe task in the list
Right click
Set priority realtime

But note that if PCAD ever freezes/locks-up with realtime priority set it will use 100% of the cpu cycles and there wont be any left for the basic windows operations needed to process a ctrl-alt-del event and kill the task.
Realtime priority means the app gets all the cycles it wants, if it chooses to get stuck in a loop then its usually reset button time :P
Unless the loop it gets stuck inside has some callback to process windows messages.
« Last Edit: August 06, 2015, 09:43:22 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9946
  • Country: nz
Re: PCB redraw slow on new machine
« Reply #18 on: August 06, 2015, 09:45:03 am »
Have you tried running PCAD when in windows safe mode? It uses a totally different video driver framework.
Not that running it in safe mode is really a valid option, but it might be interesting to see if it has any effect.

I always use the Safe Mode "with networking" option if i ever need safe mode, Just because i don't want internet withdrawal :)

« Last Edit: August 06, 2015, 09:50:56 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: PCB redraw slow on new machine
« Reply #19 on: August 06, 2015, 09:53:58 am »
Have you tried telling Windows 7 to not clock down the cpu with speedstepping?
Go to Advanced Energy option of (the high performance plan), go to "Processor Power Management", and set "Minimum Processor State" to 100%.
Since scrolling is such an incidental event the speedstepping/turbo algorithm might not be fast enough.

You can use ProcessLasso if you running the program with higher priority class helps. In there you can also change different priority levels (memory and io). Or, change the Scheduler to change the foreground/background ratio or time-slice time, which might help you get rid of audio glitches, but could also make these single-threaded applications run smoother.
https://bitsum.com/processlasso/
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9946
  • Country: nz
Re: PCB redraw slow on new machine
« Reply #20 on: August 06, 2015, 09:56:52 am »
I have a really bad idea. I wonder if it would be any faster running inside a winXP VM on top of win7.
Could install virtualbox, install XP inside and give it a try.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
Re: PCB redraw slow on new machine
« Reply #21 on: August 06, 2015, 10:17:22 am »
Quote
Set priority realtime
No difference
Quote
Have you tried running PCAD when in windows safe mode?
No difference
Quote
I have a really bad idea. I wonder if it would be any faster running inside a winXP VM on top of win7.
Too much effort for something that's only a minor annoyance ATM.
Might try it next time I have a monster PCB to do if I've not solved it.

I have ordered a more powerful graphics card to try (Nvida GTX 285) but from what I can tell the onboard Intel 6400 should be pretty much state-of-the-art for 2D so would be surprised if it makes a difference. 

From what I read, the WDDM1.1 stuff should restore most of the GDI slowness seen with Vista and W7, but doesn't appear to in this case.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9946
  • Country: nz
Re: PCB redraw slow on new machine
« Reply #22 on: August 06, 2015, 10:29:01 am »
Tried right click, run as administrator ?
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13747
  • Country: gb
    • Mike's Electric Stuff
Re: PCB redraw slow on new machine
« Reply #23 on: August 06, 2015, 11:02:11 am »
Tried right click, run as administrator ?
Yep.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9946
  • Country: nz
Re: PCB redraw slow on new machine
« Reply #24 on: August 06, 2015, 11:26:39 am »
I'm out of ideas then.
Greek letter 'Psi' (not Pounds per Square Inch)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf