Page 1 of 1
Game lags terribly on Software Rendering mode
Posted: Sun Apr 08, 2018 10:15 pm
by Erenussocrates
I haven't been playing Doom for a while up until now. When I launched the game and started playing today, the game had terrible FPS (I didn't have FPS counter, but it was definitely noticable, somewhere around 15 fps) I downloaded the latest GZDoom stable update, and it was still doing the same. Then I tried switching to hardware mode, and the lag was gone.
Needless to say, it wasn't like this on my PC before.
Re: Game lags terribly on Software Rendering mode
Posted: Sun Apr 08, 2018 10:19 pm
by Rachael
First of all, this is not a bug.
Secondly, you have given absolutely no information here. We need to know your CPU and GPU type, what your vid_glswfb setting is, and what operating system you are using.
This issue is unsolvable without this critical information.
Re: Game lags terribly on Software Rendering mode
Posted: Sun Apr 08, 2018 10:29 pm
by Erenussocrates
I don't care, the first category I've seen which might have been a right place to post was there, so I posted there. Also, from my experience it looked pretty much like a bug, since it didn't use to do that. It doesn't matter anyway.
I have:
Operating System
Windows 10 Home Single Language 64-bit
CPU
Intel Core i7 6700HQ @ 2.60GHz 50 °C
Skylake 14nm Technology
RAM
16,0GB
Motherboard
MONSTER ABRA A5 V7.1 (U3E1)
Graphics
Generic PnP Monitor (1920x1080@60Hz)
Intel HD Graphics 530 (CLEVO/KAPOK Computer)
4095MB NVIDIA GeForce GTX 960M (CLEVO/KAPOK Computer) 43 °C
ForceWare version: 382.05
SLI Disabled
Storage
223GB INTEL SSDSCKHW240A4 (SSD) 39 °C
931GB Hitachi HGST HTS721010A9E630 (SATA) 41 °C
Optical Drives
DiscSoft Virtual SCSI CdRom Device
DiscSoft Virtual SCSI CdRom Device
DiscSoft Virtual SCSI CdRom Device
DiscSoft Virtual SCSI CdRom Device
DiscSoft Virtual SCSI CdRom Device
DiscSoft Virtual SCSI CdRom Device
DiscSoft Virtual SCSI CdRom Device
TSSTcorp CDDVDW SU-208GB
Audio
Realtek High Definition Audio
I don't know what that other setting is and I don't know where to look at that.
Re: Game lags terribly on Software Rendering mode
Posted: Sun Apr 08, 2018 10:33 pm
by Rachael
It appears this is a laptop that uses
Optimus. There are known issues with that.
There is no real solution to the problem, but there are a number of work-arounds that you can try:
If you're running Windowed mode (NOT borderless):
Workaround 1: In GZDoom, you can turn off
VSync and enforce a framerate cap instead. You may use the console for this:
The actual FPS will be 63 or so, because of how the timing code works, but it works. DWM.exe enforces
VSync, anyhow, unfortunately.
If you're using Borderless and/or Fullscreen:
Workaround 2: GZDoom functions better when
VSync is forced on, with
Optimus in either fullscreen mode.
This will work regardless of windowed setting:
Workaround 3: You can force GZDoom to use your Intel processor. This is, again, accomplished with the console as follows:
Set it to 0 to use the default again, or to let
NVidia decide.
Re: Game lags terribly on Software Rendering mode
Posted: Sun Apr 08, 2018 10:40 pm
by Erenussocrates
Yep, it's a laptop. I'm using NVidia, I don't know what optimus is though.
Re: Game lags terribly on Software Rendering mode
Posted: Sun Apr 08, 2018 10:42 pm
by Rachael
I edited my previous post after doing a bit of research on your motherboard.
Re: Game lags terribly on Software Rendering mode
Posted: Sun Apr 08, 2018 10:46 pm
by Erenussocrates
Oh yep, the third option did work. I hope I won't install a mod that might require my other, more powerful GPU though. But in any case, thanks
Re: Game lags terribly on Software Rendering mode
Posted: Sun Apr 08, 2018 10:50 pm
by Rachael
Sure thing.

Re: Game lags terribly on Software Rendering mode
Posted: Mon Apr 09, 2018 12:29 am
by Graf Zahl
Since this is software rendering, I'm wondering if the issue will be resolved by the new render backend unification.
How does hardware rendering perform on this system? Has it similar problems?
Re: Game lags terribly on Software Rendering mode
Posted: Mon Apr 09, 2018 12:32 am
by Rachael
@ Graf:
I suspect the problem is a large resolution display reveals a rather ugly underlying problem. Optimus syncs utterly terribly in DWM.exe (thanks again for the poor design choices, Microsoft!) and this can actually be hidden when frame rates are very high, like more than 4 times the display's refresh rate. Since the software renderer is not that fast, that means a lower frame rate obviously (still technically >60 but not visibly, and just barely at that even), but also much poorer sync.
Having an Optimus laptop myself, I have experienced a myriad of these sync issues. If my suspicions are correct, the only thing that happened here was in the OP's case the hardware renderer was running quick enough that he did not notice the frame lag that was actually happening.
However, if I am wrong then you might actually be correct since GZDoom currently defaults to rendering on an ancient Direct3D backend. If that's the case, and this is an issue I've never experienced with Optimus, then you'd be right that the unification would fix the problem - but it seems to me rather unlikely that will be the case.
Basically, what it comes down to is DWM.exe is a shitty piece of software.
Also - on a more technical note, if you want to know what Optimus actually does - it's basically using the Intel processor entirely for both the display adapter and the video memory, as well as copying the framebuffer from the NVidia render. The NVidia chip functions as nothing more than a D3D/OGL/Vulkan drawer, and it renders to a texture that Intel picks up and places inside of its video memory using accelerated 2D functions. If the sync events are out of whack, you can imagine how this would cause terrible lag.