[0.13.13-0.13.15] High GPU usage

This subforum contains all the issues which we already resolved.
axazol
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Mar 02, 2016 12:20 am
Contact:

[0.13.13-0.13.15] High GPU usage

Post by axazol »

100% of GPU usage and low FPS when alot of tree on screen simultaneously (max zoom and/or in forest). Meantime if i run out on free space GPU usage lowers to 30% and FPS rises back to 60.
Actual only with [video-memory-usage=all]. No issue if use 5dim_automatization_0.13.1 or Yuoki_0.3.58 separately.
screenshots
log-file:
[video-memory-usage=all]

Created atlas bitmap 16384x12971
[video-memory-usage=high]
Created atlas bitmap 16384x9801
[video-memory-usage=medium]
Created atlas bitmap 16384x4350
mods
graphics
Attachments
DxDiag.txt
(83.88 KiB) Downloaded 128 times
Last edited by axazol on Tue Aug 09, 2016 12:58 pm, edited 1 time in total.

Loewchen
Global Moderator
Global Moderator
Posts: 8996
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.13.13-0.13.15] High GPU usage

Post by Loewchen »

The frametime is (once again) lost in the flip which suggests an issue with v-sync or the driver. I lost track on the status of the v-sync debugging, but you cold try to enable it and/or switch from d3d to opengl and vice versa.
Please upload the log as well.

Twinsen
Factorio Staff
Factorio Staff
Posts: 1348
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [0.13.13-0.13.15] High GPU usage

Post by Twinsen »

Loewchen wrote:The frametime is (once again) lost in the flip which suggests an issue with v-sync or the driver. I lost track on the status of the v-sync debugging, but you cold try to enable it and/or switch from d3d to opengl and vice versa.
Please upload the log as well.
Actually further investigation shows that high flip times is not necessarily related to vsync. Render sends all the data to be rendered to the video card and the video card will start rendering. When we tell the video card to flip, it will sometimes have to wait for the framebuffer to actually finish drawing. So high flip times and high GPU usage means slow rendering.
axazol wrote:Meantime if i run out on free space GPU usage lowers to 30% and FPS rises back to 60.
Actual only with [video-memory-usage=all]. No issue if use 5dim_automatization_0.13.1 or Yuoki_0.3.58 separately.
I don't exactly understand what you mean by "if i run out on free space" ?

If your video card can handle it(and yours should), you should set [video-memory-usage=all]. This means all textures will be in video memory and will render quickly, and you will have high FPS.
If you set video-memory-usage lower(for video cards that don't have enough VRAM), some textures will (sometimes) stay in system RAM, meaning it will be much slower to render them and you will have low FPS.

Can you tell me what FPS you get for each video-memory-usage setting? (make sure to test in the same savegame, in the same location, same zoom and same mods)

axazol
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Mar 02, 2016 12:20 am
Contact:

Re: [0.13.13-0.13.15] High GPU usage

Post by axazol »

Twinsen wrote:I don't exactly understand what you mean by "if i run out on free space" ?
It's mean to the area with lower count of entities around (open water or desert)
Twinsen wrote:If your video card can handle it(and yours should), you should set [video-memory-usage=all]. This means all textures will be in video memory and will render quickly, and you will have high FPS.
If you set video-memory-usage lower(for video cards that don't have enough VRAM), some textures will stay in system RAM, meaning it will be much slower to render them and you will have low FPS.
Yep, it should handle it. But at [video-memory-usage=all] i still have more than 60% VRAM free. I'll test it further..
Twinsen wrote:Can you tell me what FPS you get for each video-memory-usage setting? (make sure to test in the same savegame, in the same location, same zoom and same mods)
Working on it...

axazol
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Mar 02, 2016 12:20 am
Contact:

Re: [0.13.13-0.13.15] High GPU usage

Post by axazol »

Tried to test on fresh client - all the same. In all tests max VRAM usage <= 850Mb by game

Format: old [memory setting] [char possition] ?[zoom out] [GPU usage] [GPU clock]
Gallery - http://imgur.com/a/cin73 all tree 85-1045h
all tree zoom 100-1045 (PC lagging)
all desert 38-135h
all desert zoom 56-862
high tree 14-732h
high tree zoom 58-836
high desert 40-135h
high desert zoom 60-135h 8-1054h
medium tree 31-836h
medium tree zoom 41-836
medium desert 41-135
medium desert zoom 68-135h

Twinsen
Factorio Staff
Factorio Staff
Posts: 1348
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [0.13.13-0.13.15] High GPU usage

Post by Twinsen »

Thanks for the tests.
The video memory usage is ok. Based on your atlas size the video memory usage should be 16384 * 12971 * 4 = 810MB so everything seems to be loaded correctly.

But your GPU usage very odd. Your GPU should handle much more.
I have tried similar experiments on my GTX 760 (which is less powerful than yours) and to reach 100% GPU usage, I had to draw much more sprites in 4 times bigger resolution, and even so, I still had 44FPS.
screenshot
Are you sure you don't have anything affecting your GPU usage or rendering? Maybe you have some settings(like texture filtering) set in your nvidia control panel?

Can you send me the list of mods you used when doing the tests? A factorio log will contain the list of mods and other useful information.

posila
Factorio Staff
Factorio Staff
Posts: 5331
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.13.13-0.13.15] High GPU usage

Post by posila »

This should be fixed in 0.13.16.
We have added option to enable mipmapping for tree sprites, which according to our measurements greatly reduces GPU load when rendering zoomed out forests.

Post Reply

Return to “Resolved Problems and Bugs”