DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

slow screen regeneration in windows 7

Started by rccon, October 22, 2014, 09:53:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rccon

I've been using designcad 21 on a pentium 4, 3.4 Ghz with windows xp pro. I recently got a somewhat newer Dell gx620 pentium d, 3.4 Ghz with windows 7, thinking it would be faster to regenerate drawings on the screen.  I only do 2d drafting, but often embed images of scanned documents in my drawings.

Disappointingly, the windows 7 computer turned out to be the same or slower than the xp machine. For drawings with several bitmaps embedded it would be much slower. One drawing which regenerates in less than a second on the xp takes 4 seconds on the win 7.  I tried swapping the graphics cards, both nvidias, and it made no difference, then tried both computers with just the onboard graphics. Still the time to regenerate was the same. 

Both of the video cards use open gl, one is a quadro with 256 MB, the othrer a evga with 2 GB, but neither made any difference. So I am wondering 1. Is there any point in having a video card for 2d work  and 2. Will windows 7 always be slower to regenerate than windows xp?  I'm thinking of getting a new computer, but don't want to do that just to find it's no faster than the one I have.

DrollTroll

Starting with Windows Vista, Microsoft really did a number on the display efficiency for "just drawing stuff". The new "Aero" interface with transparency and the associated "eye candy" has generally resulted in slower operations for programs using the old GDI graphics interface (as DesignCAD does).

You can try changing your display performance settings, but that doesn't seem to help on all systems. If you want to try it, open Control Panel, choose System and Security, then System. Click on the "Advanced system settings" item in the panel on the left. Activate the Advanced tab, then click the Performance settings button, and activate the Visual Effects tab. There you can fiddle with the various settings available. I'd try "best performance" just to see if it helps any.
25 years with DesignCAD

Dr PR

rccon,

I have a Windows 7 Pro 64 machine with a 3.2 GHz i7-3940K processor and an Nvidia Quadro 2000 video card

and

an XP Pro machine with a 3 GHz Pentium 4 processor and an Nvidia Geforce FX5700LE. Note: The FX5700LE was one of the fastest video crads for 2D drawing back when I assembled the machine.

The Win 7 machine is 12 times faster than the XP machine for things like rendering 3D objects in DesignCAD. Note: That's 1200% faster!
You can find some discussions of hardware configurations for fast operation on the forum.

****

Like DT said, kill all the unnecessary fancy video crap Microsoft has loaded on the operating system. Kill the Aero interface and use the "Classic" style.

Also, be absolutely certain that your display settings match the capabilities of your video card. Use the native resolution (pixels) and the native colors (number of colors) - anything else causes the driver to have to interpolate the image and that takes a lot of time.

Be certain you have the latest Nvidia drivers.

Disable the Microsoft "Intelligent Mouse" (ipoint.exe) driver (or any other fancy mouse driver) - it plays havoc with DesignCAD and other CAD programs! Just use the basic mouse driver that comes with Windows.

Disable indexing on your hard drives - this is a real time consumer and is totally worthless.

If you really want to speed things up disable all unnecessary startup programs. This can be tricky because it isn't always obvious which of these are necessary and which are fluff.

And to really make the machine fly unplug it from all networks and disable all network software. Use your older computer for email and Internet surfing.

Phil
DesignCAD user since 1987

prl

#3
This is a topic that also interests me although I haven't had time to explore it much in depth since I purchased a Win 7 64 laptop earlier this summer.  Basically it is a training machine for me for some CAD betas, and also some of the other programs I use that are going the 64 bit upgrade way.

Anyway, I'm not convinced what Phil says is right.  His timing tests are true enough, but they aren't apples to apples, so to speak.

I've come to believe that a 32 bit program running in a 64 bit environment is natively slower than the same 32 bit program running in a 32 bit operating system.  From what I can tell so far, on 64 bit machines running a 64 bit OS, 32 bit programs have their instructions remapped to 64 bit using WOW64.  In essence, MS 7 64x is hosting a seamless Virtual Machine 32 bit environment on the side.  The VM translates the various 32 bit instructions into 64 bit code, keeping in mind that everything your computer does (computations, graphics, etc) is the final result of a 64 bit instruction when running a 64x OS. And from what I can tell, MS's WOW64 isn't a top notch speedster especially when it comes to graphics GDI and OpenGL used by older programs.  Surprisingly, I get a faster DesignCAD running VirtualBox 64 running a DesignCAD in an XP VM, then I do with Win 7 running DesignCAD using WOW64.  In other words, VirtualBox64 is doing a better job than WOW64 running a 32 bit program.

All in all, I'm still very early in my Win 7 64 bit experience curve since few programs I have actually use 64 bit architecture.  And besides CAD, nobody really cares that much about true speed provided the newer Windows OSs don't appear noticeably slower (which is usually the case but is offset by faster CPUs).  And you can hide a lot of crap by distracting your audience with finger painting magic, whether or not it plays music, talks to you, is your girlfriend, is your public scrapbook/diary, etc.  ::)

Also, I'm guessing that if Phil took his Win 7 super computer and dualbooted it to a native Windows XP OS, for the same super computer machine/hardware, DesignCAD would run faster on that machine running XP then it would Win 7.

Win 7 provides architecture for more memory space but that is about it.

rccon

Thanks for the response,guys. It will take me some time to check out your various suggestions. I'd be very happy to achieve a fraction of the improvement that Phil reports.  Richard

Dr PR

prl,

Can you provide some experimental data so support your hypothesis about XP and Win 7?

You certainly may be right about Win 7 being "slower" because it is trying to do a lot more things than XP.

And you are right that faster processors do mask some of the OS slowness. Program bloat has always just about cancelled any performance increase in the processor.

However, as is true on my machines, my 3.2 GHz Win 7 64 system is MUCH faster than my 3 GHz XP (32) system. Here is why:

1. The 64 bit bus fetches data twice as fast as a 32 bit bus. This is true for programs and data, and CAD is data intensive (the drawing itself, and the program's various data bases for shading surface normals, shadows, etc.). So a 64 bit bus is automatically twice as fast as a 32 bit bus, all other things equal. 2x multiplier.

2. Faster RAM. My old XP machine has a Front Side Bus speed something like 400 MHz (fast 12 years ago). The Win 7 machine has a 1600 MHz FSB. And the RAM is capable of 1600 MHz FSB operation at normal bus voltages (1.5V). The new RAM is four times as fast = 4x multiplier.

3. Motherboard design and RAM configuration also have an effect. The win 7 system motherboard allows interleaving four RAM modules so sequential memory accesses occur in different modules. Most of the delay in computer operation is waiting for RAM RAS/CAS settling times before data can be read/written. By using prefetch and running sequentially while you are accessing one module the other three are in the process of setting up the next sequential addresses, so the RAS/CAS delay is reduced by a factor of 4. Since most program execution and large data block read/write are sequential, this memory architecture speeds things up quite a bit.

This is a significant speed factor only if one machine has interleaved memory modules and the other doesn't. It can give something like a 2X speed boost (even with interleaving program branches and random data fetches still cause full RAS/CAS delays).

4. The 64 bit Intel i7-3940K processor uses "turbo boost" (or something like that) technology. Basically it is a 3.2 GHz procesor but it will run up to 3.8 GHz until the chip heats up. Then it drops down to normal 3.2 GHz (it also has built in thermal protection so it cannot overheat and melt down). I don't think this helps much if you are doing long operations like rendering large drawings because it doesn't take long to heat up. But for the occasional quick function execution while the machine spends most of its time waiting for the next user input it may speed things up a bit - but you probably won't notice. 1.1x to 1.3x.

5. The old P4 has a single core, and can run two threads. The i7-3940K has six cores and can run 12 threads. I have seen as many as 11 threads running simultaneously, but normally only 2-3 threads are active. I can't quantify the performance increase because of the extra cores except to take into account other performance factors and attribute the rest to multiple cores. So:

2x bus width * 4x RAM speed * 1.1x processor speed = 8.8x

12x observed speed increase/8.8x = 1.4x multiplier for multiple cores.

6. There are other factors involved too. As I have said before, my workstations have no network connections. No firewall or antivirus software. Indexing is disabled and auto defragging is only periodic, not continuous. So there are none of these other CPU cycle stealers running in the background.

I don't use my workstations for email and Internet browsing. That's what the older XP machine is doing now.

****

What you say about 32 bit and 64 bit program execution speeds, especially 32 bit code running on a 64 bit machine may be true, but it is a pretty complicated subject.

Newer CPUs typically have larger and faster internal caches, and that is where the program executes. So a 64 bit CPU with a much larger and faster cache may run translated 32 bit code faster than a 32 bit CPU with smaller and slower cache. It is sort of a "brute force" thing where faster internal execution may cancel the translational delays.

****

The video card and drivers really don't effect operating speed for most "work" programs. Some "gaming" cards do execute games faster than others, but the difference really isn't all that great between the slowest and fastest. I found a test of video cards on line that showed my Nvidia Quadro 2000 card that is optimized for OpenGL (CAD) was almost as fast as the fastest cards that are "optimized" for gaming (DirectX).

Right now as far as I know DesignCAD doesn't utilize on-board hardware on graphics cards, although that may change when the RedSDK display code is fully implemented. The RedSDK code is certainly much faster than the older DesignCAD code, but that may be due to better code optimization than because of video card hardware.

****

Perhaps I could get faster performance running a virtual XP machine under VirtualBox64, but why bother? Photoshop took several minutes to load on the XP machine but it opens in about 10 seconds on the Win 7 machine. The initial load and shading for large (>50 Mbyte) drawings takes perhaps a minute on the Win 7 machine (and 10-12 minutes on the XP machine) but after that shading takes only an instant on both machines. I can be checking email on the XP machine while the Win 7 machine is loading the drawing.

In almost every case the Win 7 machine is faster than I am - it executes most operations before I can get my fingers off the keys.

Phil
DesignCAD user since 1987

prl

#6
Quote from: Dr PR on October 23, 2014, 08:53:13 AM
Can you provide some experimental data so support your hypothesis about XP and Win 7?

No, just some of my initial observations.  Someday, maybe, I'll install XP as a separate boot option on the Win7 64x laptop.  That way I can time the same machine with the same hardware running DesignCAD with each OS.

Regarding bus widths, RAM and multiple cores, sure, for a true 64 bit program that actually knows how to push data using separate processes for maximum performance.  DesignCAD doesn't fall into that category.  We are at the mercy of legacy emulation code.

Dr PR

prl,

Here are my thoughts about 32 bit vs 64 bit operations. I'm not sure everything here is correct (I don't keep up with all the programming details of all the processors) so correct me if I am wrong. However, bus width and it's speed advantages is independent of code type - 32 bit or 64 bit.

****

Data on hard drives is stored in sectors that have a variable number of bytes per sector depending upon the formatting. When data/code are read from the hard drive into RAM they are stored as a sequence of bytes.

RAM is addressed as a series of locations, each with a unique address. Each address is a collection of 8-bit bytes organized according to the data bus width of the RAM. With a 32 bit RAM data bus four bytes are stowed into one address. With 64 bit busses eight bytes are stowed at each address. This happens regardless of data or code type (32 bit or 64 bit).

In other words, in a 32 bit or 64 bit system each address location does not store only an 8 bit byte. Bytes are packed into all parts of each memory address. At this point they are just bytes, not code or data.

Program code and data are read into the first level CPU cache as just a series of bytes - neither code or data. When the bus controller fetches bytes from memory it doesn't know whether they are code or data - they are just bytes. A 32 bit machine fetches four bytes at a time and a 64 bit machine fetches eight bytes at a time.

The fetched bytes go into the first level cache in the processor. This is just a storage area made up of fast RAM - faster then the system RAM on the motherboard. Again, it is just bytes, neither code or data, and bytes are packed into every byte location in the cache.

For all of these operations a 64 bit data bus is twice as fast as a 32 bit data bus.

****

It is not until the second level cache where the bytes become code or data, according to what the program that is being executed expects. That program is executing from the same second level cache. The processor fetches a byte, word, long, double - whatever according to the currently executing instruction. The memory controller extracts the proper number of bytes from the cache regardless of how the bytes are packed into a 32 bit or 64 bit memory.

In other words the next byte to be fetched may be stored anywhere within a 32 bit or 64 bit memory location. The memory controller reads the entire location, locates the desired byte and fetches it. In some cases a 32 bit instruction may be stored as four sequential bytes in two memory locations on a 64 bit machine (it could be split between two 32 bit blocks).  If this happens the 64 bit machine will need to make two memory fetches to retreive the instruction.

However, I think it is pretty rare for a compiler to break instructions between addresses like this, so it is most likely that 32 bit instructions will be aligned with 32 bit address boundaries. So each fetch in a 64 bit system will read two 32 bit instructions. The memory controller knows it has fetched the desired instruction plus the following 32 bits. Barring a branch operation (jump, call, etc.) the controller will feed the second 32 bit instruction to the CPU without having to do another fetch. For this reason a 64 bit processor should execute 32 bit code almost twice as fast as a 32 bit machine with equal cache and processor clocks.

****

For data fetches the same is true. A 64 bit value is stored in two address locations on a 32 bit machine, but in only one on a 64 bit machine. For smaller variables the same is true. The 64 bit machine fetches twice as many bytes as the 32 bit machine on each memory cycle, and the memory controller in the CPU sorts the bytes into bytes, words, longs doubles, etc. according to the instructions in the program.

So a 64 bit machine will always fetch data twice as fast as a 32 bit machine.

****

Having said all of this, there are problems with running 32 bit applications on 64 bit machines because of address limitations in the 32 bit code. A 32 bit address is stored in a 32 bit space in a 32 bit machine and there is no ambiguity. However, on a 64 bit machine addresses can be 64 bits. So when a 32 bit address is stored on a 64 bit machine the processor doesn't know whether to fetch 32 bits or 64 bits if the instruction doesn't explicitly state that the address is only 32 bits. And I don't know of any instruction set that explicitly states the address bit length. That is inherent in the address structure of the processor the code is compiled for. If it is compiled for a 32 bit machine the assumption is that a memory fetch will retrieve only 32 bits. But 64 bit machines fetch 64 bits. That's where the WOW64 and similar programs come in. They have to read the 32 bit code and parse it into 64 bit address space correctly. 32 bit addresses get a leading 32 zero bits.

This is a problem only with instructions that include addresses. Jump [address], Call [address], etc. It may be a problem with relative jumps and calls, but I need to think that one through a bit more, but if it is the translator will take care of it. It is not a problem with data fetches since the data type is inherent in the instruction (8, 16, 32 or 64 bits). The memory controller sorts this out automatically.

Also, some processors have extra instructions and unique coding structures and the translators have to substitute different code when programs compiled with these extra features are run on processors that don't have them. All in all, it is quite a mess, and the instructions that were created to speed things up actually create an overhead that slows things down.

You would think running a 32 bit program on a 32 bit machine wouldn't incur the overhead of a translator. However, XP does filter programs through a 16 bit to 32 bit translator (Windows on Windows) to ensure compatability with older DOS and Win 3 code (Win 7 is incompatable with the older 16 bit code). And XP has to deal with the instructions unique to specific Intel and AMD processors. I don't know if all programs go through WoW in XP.

Phil
DesignCAD user since 1987

prl

Phil, wow, that is thorough.  I've read it several times.  On a technical level I can't dispute what you've stated.   I get the feeling that somewhere in there (the OS), the instruction sets are filtered through instruction sets and bloated C++ code that encapsulates poor OOP routines.  The ever increasing physical size of the base OS with tens of thousands of DLLS comes to mind.

About the only sure way for me to compare DesignCAD performance is the dual boot OS test on a single computer.   If I do do this, I'll let you know.  I have no problems saying  "hey, I was wrong".  Wouldn't be the first time.


Rob S

I had the same experience as rccon when I first got windows 7, and after a bit of playing around, I tried the best performance setting and this made quite a difference.

Eventuallly, I put back most of the features except the first three or four having to do with animating the controls and windows.

This left me with excellent performance, and most of the toys.
User since forever