Jump to content

Performance problems


zoid
 Share

Recommended Posts

First of all, Hi, this is my first post and the first time I try 0 AD. Also, English it's not my native language, so please excuse my grammar/spelling errors.

I just compiled 0 AD r09786, the game runs very slow, disabling reflections and shadows doesn't seem to help. The slowness it's noticeable even on the movement of the mouse cursor.

My specs are:

CPU: AMD 64 X2 Dual Core Processor 4400+

RAM: 2Gb DDR2

GPU: GeForce 7300 GT

Using Debian 6, nvidia propietary driver v96.43.18.

This is the console output of running the game for a minute or so:

./system/pyrogenesis_dbg

Cache: 500 (total: 2012) MiB

TIMER| InitVfs: 990.593 ms

TIMER| InitScripting: 1.11429 s

TIMER| CONFIG_Init: 48.0739 ms

TIMER| RunHardwareDetection: 87.9895 ms

TIMER| write_sys_info: 544.6 us

TIMER| InitRenderer: 55.7965 ms

TIMER| ps_console: 28.1106 ms

TIMER| ps_lang_hotkeys: 3.19636 ms

TIMER| common/setup.xml: 16.3688 ms

TIMER| common/styles.xml: 1.95468 ms

TIMER| common/sprite1.xml: 8.84856 ms

TIMER| common/init.xml: 11.5324 ms

TIMER| pregame/sprites.xml: 2.7704 ms

TIMER| pregame/styles.xml: 202.44 us

TIMER| pregame/mainmenu.xml: 48.36 ms

TIMER| common/global.xml: 1.83892 ms

SND| alc_init: success, using PulseAudio Software

TIMER| common/setup.xml: 3.01472 ms

TIMER| common/styles.xml: 1.00404 ms

TIMER| common/sprite1.xml: 7.99096 ms

TIMER| gamesetup/setup.xml: 11.4822 ms

TIMER| gamesetup/sprites.xml: 152.92 us

TIMER| gamesetup/styles.xml: 202.96 us

TIMER| gamesetup/gamesetup.xml: 72.5349 ms

TIMER| common/setup.xml: 3.31988 ms

TIMER| common/styles.xml: 1.09116 ms

TIMER| common/sprite1.xml: 7.96288 ms

TIMER| common/init.xml: 9.77124 ms

TIMER| loading/styles.xml: 407.4 us

TIMER| loading/sprites.xml: 3.1296 ms

TIMER| loading/loading.xml: 8.588 ms

TIMER| common/global.xml: 1.48868 ms

TIMER| common/setup.xml: 3.27088 ms

TIMER| common/styles.xml: 1.09024 ms

TIMER| common/sprite1.xml: 7.93272 ms

TIMER| common/icon_sprites.xml: 15.0922 ms

TIMER| session/sprites.xml: 16.337 ms

TIMER| session/styles.xml: 1.11736 ms

TIMER| session/session.xml: 185.966 ms

TIMER| common/global.xml: 2.88224 ms

GAME STARTED, ALL INIT COMPLETE

TIMER| common/setup.xml: 3.27648 ms

TIMER| common/styles.xml: 1.08752 ms

TIMER| common/sprite1.xml: 8.4854 ms

TIMER| common/icon_sprites.xml: 15.1031 ms

TIMER| common/init.xml: 9.73416 ms

TIMER| summary/summary.xml: 57.692 ms

TIMER| summary/sprites.xml: 441.4 us

TIMER| common/global.xml: 2.07124 ms

TIMER| common/setup.xml: 3.1158 ms

TIMER| common/styles.xml: 1.09384 ms

TIMER| common/sprite1.xml: 8.12092 ms

TIMER| common/init.xml: 9.57192 ms

TIMER| pregame/sprites.xml: 1.93536 ms

TIMER| pregame/styles.xml: 111.92 us

TIMER| pregame/mainmenu.xml: 39.0518 ms

TIMER| common/global.xml: 1.65588 ms

TIMER| common/setup.xml: 3.01508 ms

TIMER| common/styles.xml: 1.07772 ms

TIMER| common/sprite1.xml: 8.4446 ms

TIMER| msgbox/msgbox.xml: 3.88992 ms

TIMER| shutdown actor stuff: 12.2 us

TIMER| shutdown TexMan: 7.04 us

TIMER| shutdown Renderer: 26.8642 ms

TIMER| shutdown SDL: 110.896 ms

TIMER| shutdown UserReporter: 16.1422 ms

TIMER| shutdown ScriptingHost: 64.773 ms

TIMER| shutdown ConfigDB: 2.16 us

TIMER| resource modules: 174.899 ms

TIMER TOTALS (9 clients)

-----------------------------------------------------

xml_validation: 206.388 Mc (125x)

tc_ShaderValidation: 59.7733 Mc (26x)

tc_pool_alloc: 882.047 Mc (2098236x)

tc_linkProgram: 42.3319 Mc (1x)

tc_compileShader: 250.212 Mc (2x)

tc_png_decode: 62.7008 Mc (30x)

tc_dds_transform: 5934.86 kc (914x)

tc_transform: 9576.85 kc (306x)

tc_plain_transform: 2412.09 kc (306x)

-----------------------------------------------------

TIMER| shutdown misc: 1.00376 ms

Is my hardware too small to run the game?

If not, what additional info can I submit in order to debug this?

Thanks!

Link to comment
Share on other sites

You're running the unoptimised debug version, which is intentionally slow :). Compile the optimised version with "make CONFIG=Release" and run pyrogenesis (not _dbg), and it should be faster.

That's right!

Compiling with the Release config produces a much faster binary.

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

hi, firstly love the game, i am having perfermance problems it gets quite slow after a while

Vista 32 bit home premium

TT7700 2.40 ghz 2.40

2 gb ddr3

nvidia 8600 gtm

is it my hardware or is it a setting problem, i dont understand the graphic settings as there all in short so not sure if they should be true or false

Edited by domurc
Link to comment
Share on other sites

Hello everybody!

Hum, It's my first message on this forum and I don't know if I should start my own thread. Cause my problem is exactly the same as Zold, and I've done exactly what Ykkrosh said to fix it. But still, My game is very slow. As soon as start ( leaving the main menu for single player menu for example) the cursor is acting weird, slow I mean. And is still slow during the game.

Ok so I'm on a laptop

OS : Ubuntu 11.04

CPU: Intel i5 4 core

MEM: 4 GB

Graphic Chipset: Intel HD Graphics (integrated VGA compatible Controller)

I've download the 0ad-r09786-alpha tar.gz (both data and build) and unzipped them, then in a terminal

cd 0ad-r09786-alpha/build/workspaces

./update-workspaces.sh -j4

cd gcc

make CONFIG=Release -j4

I tested it, Was OK!

here is what console gave me after Test and Runing the Game for almost a minute:

martus@martus-laptop:~/Games/0ad-r09786-alpha$ binaries/system/test

Running 251 tests...........................................................................................................................................................................................................................................................OK!

martus@martus-laptop:~/Games/0ad-r09786-alpha$ binaries/system/pyrogenesis

Cache: 200 (total: 3440) MiB

TIMER| InitVfs: 130.615 ms

TIMER| InitScripting: 1.77332 ms

TIMER| CONFIG_Init: 2.50079 ms

ATTENTION: default value of option force_s3tc_enable overridden by environment.

TIMER| RunHardwareDetection: 23.6051 ms

TIMER| write_sys_info: 433.277 us

TIMER| InitRenderer: 864.066 us

TIMER| ps_console: 1.73829 ms

TIMER| ps_lang_hotkeys: 818.199 us

TIMER| common/setup.xml: 974.206 us

TIMER| common/styles.xml: 302.556 us

TIMER| common/sprite1.xml: 2.0185 ms

TIMER| common/init.xml: 1.78746 ms

TIMER| pregame/sprites.xml: 507.251 us

TIMER| pregame/styles.xml: 48.868 us

TIMER| pregame/mainmenu.xml: 13.6027 ms

TIMER| common/global.xml: 499.516 us

SND| alc_init: success, using PulseAudio Software

TIMER| common/setup.xml: 2.32808 ms

TIMER| common/styles.xml: 248.354 us

TIMER| common/sprite1.xml: 1.87943 ms

TIMER| gamesetup/setup.xml: 87.504 us

TIMER| gamesetup/sprites.xml: 38.429 us

TIMER| gamesetup/styles.xml: 58.172 us

TIMER| gamesetup/gamesetup.xml: 13.6084 ms

TIMER| common/setup.xml: 1.17675 ms

TIMER| common/styles.xml: 256.595 us

TIMER| common/sprite1.xml: 1.86264 ms

TIMER| common/init.xml: 1.49381 ms

TIMER| loading/styles.xml: 109.554 us

TIMER| loading/sprites.xml: 622.259 us

TIMER| loading/loading.xml: 1.4709 ms

TIMER| common/global.xml: 332.446 us

TIMER| common/setup.xml: 863.52 us

TIMER| common/styles.xml: 271.788 us

TIMER| common/sprite1.xml: 1.79836 ms

TIMER| common/icon_sprites.xml: 3.36395 ms

TIMER| session/sprites.xml: 3.24129 ms

TIMER| session/styles.xml: 220.987 us

TIMER| session/session.xml: 44.5761 ms

TIMER| common/global.xml: 883.16 us

GAME STARTED, ALL INIT COMPLETE

TIMER| common/setup.xml: 983.426 us

TIMER| common/styles.xml: 309.621 us

TIMER| common/sprite1.xml: 2.15174 ms

TIMER| common/icon_sprites.xml: 3.56522 ms

TIMER| common/init.xml: 1.50954 ms

TIMER| summary/summary.xml: 17.1254 ms

TIMER| summary/sprites.xml: 114.993 us

TIMER| common/global.xml: 634.956 us

TIMER| common/setup.xml: 3.24344 ms

TIMER| common/styles.xml: 413.625 us

TIMER| common/sprite1.xml: 1.81356 ms

TIMER| common/init.xml: 1.48766 ms

TIMER| pregame/sprites.xml: 518.772 us

TIMER| pregame/styles.xml: 32.456 us

TIMER| pregame/mainmenu.xml: 11.3319 ms

TIMER| common/global.xml: 474.61 us

TIMER| common/setup.xml: 2.56077 ms

TIMER| common/styles.xml: 789.514 us

TIMER| common/sprite1.xml: 6.20066 ms

TIMER| msgbox/msgbox.xml: 1.16989 ms

TIMER| shutdown actor stuff: 22.982 us

TIMER| shutdown TexMan: 1.934 us

TIMER| shutdown Renderer: 11.1882 ms

TIMER| shutdown SDL: 64.4712 ms

TIMER| shutdown UserReporter: 197.982 us

TIMER| shutdown ScriptingHost: 21.672 ms

TIMER| shutdown ConfigDB: 0.648 us

TIMER| resource modules: 37.7528 ms

TIMER TOTALS (9 clients)

-----------------------------------------------------

xml_validation: 48.9328 Mc (116x)

tc_ShaderValidation: 5060.23 kc (17x)

tc_pool_alloc: 614.093 Mc (6130819x)

tc_linkProgram: 20.7069 Mc (1x)

tc_compileShader: 57.0619 Mc (2x)

tc_png_decode: 37.5948 Mc (30x)

tc_transform: 1439.55 kc (303x)

tc_plain_transform: 534.326 kc (303x)

tc_dds_transform: 700.57 kc (905x)

-----------------------------------------------------

TIMER| shutdown misc: 3.4205 ms

How do I fix it?

Thanks for your futur reply, and Excuse my french :)

Moooartin

Link to comment
Share on other sites

Hello everybody!

Hum, It's my first message on this forum and I don't know if I should start my own thread. Cause my problem is exactly the same as Zold, and I've done exactly what Ykkrosh said to fix it. But still, My game is very slow. As soon as start ( leaving the main menu for single player menu for example) the cursor is acting weird, slow I mean. And is still slow during the game.

Hmm, I think this is worth looking into as I'm seeing more reports of mouse lag and general slowness on Linux. By the way, that was just standard debug output you saw, nothing abnormal there :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...