• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Warcraft 3 lags when I use Print Screen

Status
Not open for further replies.

Deleted member 219079

D

Deleted member 219079

Have you tried it with both -opengl on and off?
 

Deleted member 219079

D

Deleted member 219079

Program launch arguments.

Type -opengl after the game path in wc3's shortcut.
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
It does not lag as no network traffic is generated. Screen capture in WC3 performs so badly that it forces the game to drop several frames and become unresponsive for an excessive amount of time.

Your computer specifications make no difference since it is the game process itself performing badly. When you press print screen the game makes a screen dump in the Screenshots folder of WC3. Not only is this in a very poor format (no compression, huge size) but it also must block until it is written out, possibly written out a pixel at a time. I am also guessing this is all done by the main thread as otherwise the writing would be trivial (worker thread runs in parallel so game continues after capturing the screen). The result is that even on a monster computer print screen will cause a horrible number of frame drops.

It may also be caused by how the DX8 calls used to make the screen dump operate. You must remember WC3 is very old and a lot of modern graphic optimizations we take advantage did not exist back then. A good example is how when AA is enabled (at the driver level, WC3 was before it was commonly supported by applications) the screen shot WC3 dumps appears messed up on certain cards/drivers. This means they are not dumping the output buffer but instead some internal buffer.

The solution is simple. Do not use WC3's print screen. Instead bypass it. The native print screen functionality of the OS will perform considerably better (probably not even drop a single frame). Alternatively third party screen capture programs will also perform better (and they can be made to automatically save screenshots like WC3). You can also perfectly video capture WC3 as that again bypasses the WC3 process, often capturing directly from the GPU, this is how people live stream WC3 and make youtube submissions.
 
  • Like
Reactions: Kam

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
Is the Prt Scr key not the native function?
Yes but it is also bound to the Warcraft III process print screen which is what makes the lag. The WC3 process is the one that pops up "screen saved" and it is the one that drops considerable number of frames when you press it.

It should not drop any frames if done correctly. This is how people can stream WC3. Both SC2 and D3 (newer Blizzard games) have no problem with screen capture even with their in game screen shot save system. It drops at most 1-2 frames, which seem related to how fast I/O is performed.
 
Yes but it is also bound to the Warcraft III process print screen which is what makes the lag. The WC3 process is the one that pops up "screen saved" and it is the one that drops considerable number of frames when you press it.

It should not drop any frames if done correctly. This is how people can stream WC3. Both SC2 and D3 (newer Blizzard games) have no problem with screen capture even with their in game screen shot save system. It drops at most 1-2 frames, which seem related to how fast I/O is performed.

Is there a way to unbind it?
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
What would cause Wc3 to perform poorly on such a modern PC?
Being badly written? As I said it probably blocks for I/O which even on modern computers could take a few seconds depending on state and type of hard drive.

it freezes the game for good 10 seconds, I have no idea if the game itself is frozen, or only the graphical output is frozen, I never tested that and dont remember
You use a mechanical hard disk right? It could be that the drive went to sleep (turned off) meaning that in order to write the file it has to spin back up to speed. Depending on the make of drive this can take in the order of 5-10 seconds. It is controlled by power management settings but I would not recommend turning it off since it may detrimentally affect drive life (more it spins, the shorter it lives).
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
Yes, I use HDD.

It is not that tho, because even if I am downloading something from website, which for sure does writing to my hard drive, it will still have the same amount of lag.

You have already covered why it is so, shitty way of taking the picture
 
Status
Not open for further replies.
Top