spring 95 + BA 7.84 and video memory

spring 95 + BA 7.84 and video memory

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

spring 95 + BA 7.84 and video memory

Post by jamerlan »

Hi to all!

I am playing on near on low settings and memory of my Nvidia card is full.

If I close spring - 300 of 1000mb is used. If I play BA (for example on tabula v4 map) - my video memory is full. When it's full - I have FPS frop and pauses during the game.

Image

So I lowered video settings and turned on "texture compression".

95 Spring uses more video memory? Or it's just my new monitor and I need a new video card?

My resolution is: 2560x1440
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring 95 + BA 7.84 and video memory

Post by dansan »

This seems wrong. I have only 256MB and no problem. Also the PCe usage looks like you are swapping or something.

System... Linux? If it's Linux, then maybe it's your DE not rendering directly.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: spring 95 + BA 7.84 and video memory

Post by jamerlan »

Just tested. On lowest with compression I have 800mb used on DSD

Yes, I think it's garbage collector running on GPU (trying to find free memory).

Yes linux. Fedora 20. On fedora 19 I saw the same behaviour.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: spring 95 + BA 7.84 and video memory

Post by Kloot »

Check if it still happens after issuing /luaui disable.

In the case that stops the leak, find out which widget(s) are responsible for triggering it: start with the top half of all widgets enabled and the bottom half disabled, run nvidia-settings to see whether it still leaks and if so split the top half into an enabled / disabled part, etc. Then we can derive which Spring function(s) are involved.

Otherwise, you may have to use an OpenGL debugger tool.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: spring 95 + BA 7.84 and video memory

Post by jamerlan »

Thank you Kloot! I will try to disable widgets and monitor video memory.

I am noob in opengl. Just for fun I did: ./apitrace trace --api gl /home/revenant/.spring/engine/95.0/spring

these errors I got:
apitrace: warning: unknown function "glVDPAUFiniNV"
apitrace: warning: unknown function "glVDPAUGetSurfaceivNV"
apitrace: warning: unknown function "glVDPAUInitNV"
apitrace: warning: unknown function "glVDPAUIsSurfaceNV"
apitrace: warning: unknown function "glVDPAUMapSurfacesNV"
apitrace: warning: unknown function "glVDPAURegisterOutputSurfaceNV"
apitrace: warning: unknown function "glVDPAURegisterVideoSurfaceNV"
apitrace: warning: unknown function "glVDPAUSurfaceAccessNV"
apitrace: warning: unknown function "glVDPAUUnmapSurfacesNV"
apitrace: warning: unknown function "glVDPAUUnregisterSurfaceNV"

apitrace: warning: _gl_param_size: unknown GLenum 0x8C7F
apitrace: warning: _gl_param_size: unknown GLenum 0x8C7F
...

full unfo: http://pastebin.com/330QBLug
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: spring 95 + BA 7.84 and video memory

Post by Beherith »

I have the same card, but on windows, here is my gpu load when looking at a /give all on BA tabula v4:
Image
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring 95 + BA 7.84 and video memory

Post by dansan »

Beherith wrote:img
New BAR unit code name "borg cube" detected in top left corner of minimap.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: spring 95 + BA 7.84 and video memory

Post by jamerlan »

I am playing in windowed mode too.

With texture compression ON and almost on lowest settings(without shadows etc) I have ~ 800mb used too just after start with /give all Even with /luaui disabled
just like Beherith. And this is just a game start.

Just after start and without units I have ~700mb used on tabula 4


I don't think that this is wrong. Maybe for this resolution I just need better video card.
Last edited by jamerlan on 24 Nov 2013, 12:56, edited 1 time in total.
zer_ver
Posts: 19
Joined: 14 Nov 2013, 17:34

Re: spring 95 + BA 7.84 and video memory

Post by zer_ver »

Yer gfx card will be assimilated
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: spring 95 + BA 7.84 and video memory

Post by Beherith »

Same rez as you, jamerlan. Does disabling texture compression even have any effect for you?

Dansan, this is a BA screenie :P
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: spring 95 + BA 7.84 and video memory

Post by jamerlan »

Beherith wrote:Same rez as you, jamerlan. Does disabling texture compression even have any effect for you?
Looks like NOT :-D

If I enable "LuaShaders support" - I see +100mb memory usage (900+ in total).

So: No LuaShaders, only basic water, no shadows, no 3d trees, no hi-res clouds etc for me with this card
User avatar
NeonStorm
Posts: 173
Joined: 23 May 2012, 18:36

Re: spring 95 + BA 7.84 and video memory

Post by NeonStorm »

Is it possible to write some code stuff which checks what is allocating all the memory?

something like /debug memory/cpu usage?

It should upload stats like widget x has %x total mem/cpu usage - compared to/against a set of other widgets - after start, /give all, etc, collecting (player-names[min..max], avg-min, avg-max) for each major version and test situation.
+Some script to test new mod+spring combos after download.

It would give registered devs a message, if their widgets start to work worse for some players.
It would players give a clue what works wrong - without the need to test everything manually.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring 95 + BA 7.84 and video memory

Post by dansan »

with, and without spring 95.0, 1920x1200/32bit (windowed), stock widgets plus a few extras

Image
Image
Attachments
with_spring95_BA_784_tabula4.jpg
with spring95, BA 7.84, Tablua-v4
(109.47 KiB) Downloaded 1 time
without_spring.jpg
without spring
(109.34 KiB) Downloaded 1 time
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: spring 95 + BA 7.84 and video memory

Post by jamerlan »

dansan, which desktop environment you use?
I am on gnome 3.10

Do you have "LuaShaders support" enabled? Shadows? Water effects?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: spring 95 + BA 7.84 and video memory

Post by Beherith »

I run with all the bells and whistles pretty much maxed. Except anti aliasing, that eats a lot of gpu ram.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring 95 + BA 7.84 and video memory

Post by dansan »

XFCE 4.10 without compositing (no 3D desktop)

LuaShaders "enabled", Shadows "disabled", Water quality "basic", Compress textures "on", Draw smooth points "on", Draw smooth lines "on", full-scene AA samples = 1.
User avatar
NeonStorm
Posts: 173
Joined: 23 May 2012, 18:36

Re: spring 95 + BA 7.84 and video memory

Post by NeonStorm »

Spring 95 eats 3GB of my ram too - Is it memory leaking?

Does somebody know a good tool to get stats on video memory with Arch linux via command line?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: spring 95 + BA 7.84 and video memory

Post by Beherith »

Neon, it would be most excellent if you could test the replay of a game that produces so much ram use, and see if it can be reproduced. Maybe a valgrind run is in order if it can be reproduced.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: spring 95 + BA 7.84 and video memory

Post by Silentwings »

I'm not able to test it myself right now - but if no one has done the bisection test that kloot suggested above, imo that should be the first thing to do.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: spring 95 + BA 7.84 and video memory

Post by Beherith »

silentwings, the easy test of /luaui disable did not prevent excessive memory use for him. jamerlan, would you be willing to test with an opengl debugger?

gDEBugger is now free, and has linux versions: http://www.gremedy.com/download.php
Post Reply

Return to “Help & Bugs”