Posts from Heroes 3 on a dual-core processor.
Auto-translated
The program doesn't reduce the number of calculations required for the "heroes" to function; it reduces the number of "unnecessary" calculations. If the processor is weak, it might turn out that 95% of the processor time is spent on calculations for Heroes, and only 5% is spent on simply running an infinite loop. The program corrects this, but it also consumes 10% of the processor time itself :-)
However, if the processor is powerful, then 98% is spent on the infinite loop, and 1-3% is spent on the seven heroes. In this case, the gain is significant. In my case, the gain is noticeable even on a 1.6 GHz laptop.
It might look like this:
start:
draw the picture
check for user input
if 10 ms have passed (for example), then
perform a calculation step
endif
go to start
------
That is, on a weak processor, everything will work great, but on a powerful one, a calculation step will be performed every 10 ms, and the rest of the time, the picture will be redrawn. Simply, on a weak computer, it will be redrawn, say, 20 times per second, and on a powerful one, 1000 times.
And here, if you insert sleep(1) in the right place, the processor will be unloaded for some time.
I'll try to find the second Heroes and the third Platinum edition (they're somewhere around here) and see what's happening with them.
I've never heard of this before... I played everything on an Athlon X2 myself...
Look for the reason elsewhere, most likely it's an incompatibility with the video adapter or something else...
Do you have a video card with integrated graphics?
JUSTICE IT REAL POWER (C)
ICQ:810721;)
I have an Athlon 64 X2 4800+
Windows XP SP2 Professional Rus, version 2002
Graphics card GeForce 8600 GTS 256MB
2GB DDR2 RAM
I tried various compatibility settings with Windows 98, but it doesn't help...
Added 17 minutes ago
I was too hasty about the processor last time; I thought we were talking about the fifth installment.
Well, I don't know, but I can suggest updating your graphics card drivers and reinstalling the game. www.nvidia.ru And the processor really isn't the issue here.
Next, owners of AMD processors should download and install the AMD DualCore Optimizer program.
If, despite performing the actions described above, problems still occur during the game (freezes, crashes to the desktop, etc.), you should try to hard-bind the game to one of the cores. To do this, after launching the game, press Ctrl+Alt+Del, in the task manager that appears, right-click on the game, select Go to processes, then click again with the right button on the selected process and select Set affinity. In the window that appears, uncheck one of the cores, it doesn't matter which one, and then close the window, the task manager itself, and return to the game.
If, after the specified actions, the problems do not disappear, and you have an NVIDIA video card installed, you can try disabling multithreading optimizations in the video drivers. Launch the registry editor (Start -> Run -> regedit.exe), go to the address HKey_Local_MachineHardwareDeviceMapVideo and write down the address where the video card settings are located from the variable devicevideo0. Note that the specified address differs in Windows 2000 and Windows XP, in Windows 2000 it will look like \REGISTRY\Machine\System\ControlSet001\Services\nv\Device0, while in Windows XP \Registry\Machine\System\CurrentControlSet\Control\Video{DD18ED74-F584-4145-B29B-E3A6C6189FAA}\0000. Go to the specified address, keeping in mind that \Registry in this case indicates that the information is in the registry, and \Machine indicates that it is stored in the HKEY_LOCAL_MACHINE section. Click the mouse in the right part of the window, select Create - DWORD Parameter, name it OGL_ThreadControl and assign it the value 2. To disable multithreading in Direct3D applications, you need to create a variable WTD_EXECMODEL of the same type and assign it the value 0. [[COLOR="Red"Note that game developers usually react quite quickly to such problems, and before disabling dual-core support, it is worth checking if there is a patch for the game that fixes possible errors.
Added 17 minutes ago
Last time I was too hasty about the processor, I thought we were talking about the fifth game.
I read on some forum that Service Pack 2 of Windows XP is to blame, I don't know
What do your two cores have to do with it?
I've never heard of that before... I played everything on an Athlon X2 myself...
Look for the reason elsewhere, most likely it's an incompatibility with the video adapter or something else...
Do you have a video card with integrated graphics?