Author Topic: Graphics performance just (r4474) increased by 66%  (Read 1351 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Graphics performance just (r4474) increased by 66%
« on: 20 June 2013, 09:50:10 »
Thanks to the work of Softcoder, Will, JohnDH and Silnarm (listed in reverse chronological order ;) ), r4474 renders faster by a magnitude of two thirds (+66%) compared to 3.7.1.

We will yet need to verify that this happens without loosing anything important regarding unit, structure and tileset animations, but during initial tests I could not observe any such issues.

So this seems to be a major achievement, especially for us users plagued with slow graphics performance (due to slow graphics hardware).

Quoting my updated table from this thread, running the "benchmark" scenario using...

Code: [Select]
./megaglest --load-scenario=benchmark --fullscreen=true
...and unmodified INIs on my atibox (specs below):

Game versionUpdateFPSRenderFPS
3.7.14030
r44093929
r44143930
r44303930
r44704030
r44744049

Sadly this doesn't make a difference for intelbox:

Game versionUpdateFPSRenderFPS
3.5.03918
3.5.24017
3.6.0.33918
3.7.14018
r43623919
r44703919
r44744019

My configuration files on these systems are the same with a single exception, based on --show-ini-settings output: intelbox uses the selectbuf selection mode, while atibox uses color picking.
Switching intelbox to color picking makes no difference to selectbuf on this system running r4474.
Switching atibox to selectbuf (which breaks unit selection there) makes quite the difference on this system running r4474: UpdateFPS 40, RenderFPS: 29.

So apparently whether the recent improvements are noticeable to you is very much a matter of which hardware and driver you are using, as well as your choice of the selection method.
« Last Edit: 20 June 2013, 13:40:55 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Graphics performance just (r4474) increased by 66%
« Reply #1 on: 20 June 2013, 10:32:51 »
r4470   4030
r44704049

???????????????????

Why has r4470 two value such different

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: Graphics performance just (r4474) increased by 66%
« Reply #2 on: 20 June 2013, 10:38:12 »
In my opinion last row is r.4474 as says the topic's name ;)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Graphics performance just (r4474) increased by 66%
« Reply #3 on: 20 June 2013, 11:05:31 »
Right, I had a typo there, that's fixed now. Thanks for pointing it out.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Pizza90

  • Draco Rider
  • *****
  • Posts: 282
    • View Profile
Re: Graphics performance just (r4474) increased by 66%
« Reply #4 on: 20 June 2013, 17:06:04 »
I can confirm the improvements (full screen), not so drastic though:

3.7.1   render: 40   update 22
r4472  render: 39   update 24
r4474  render 40:   update 27

+5 fps!

my pc specs:

Processor: AMD Athlon X2 Dual-Core QL-64 2.10 GHz
Video Card: ATI 3200
Installed memory (RAM): 4gb (3,75gb usable)
Operative system: Windows 7 professional N, 64bit Service Pack 1
I translated Megaglest in italian and i keep the translation updated.

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Graphics performance just (r4474) increased by 66%
« Reply #5 on: 20 June 2013, 21:55:50 »
render: 170 fps vs. 230 fps ... + 60 for me

Win 7 64 bit - 16 GB RAM - Nvidea Geforce GTX 570  - intel i7-2700k (4[8 virtual] x 3.5 GHz)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Graphics performance just (r4474) increased by 66%
« Reply #6 on: 21 June 2013, 00:05:43 »
Please also state which selection mode you're using, and be sure to list the revision / version you are referring / comparing to.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Graphics performance just (r4474) increased by 66%
« Reply #7 on: 22 June 2013, 17:32:36 »
Glad it worked out!

Has anyone run all the models through g3dhack (there's a command-line mode so it can be automated as I recall?) and seen how that helps too?

Mr War's models have always been super-inefficient as-exported and g3dhack has always worked wonders.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Graphics performance just (r4474) increased by 66%
« Reply #8 on: 22 June 2013, 18:34:43 »
I assume there is no non-C# rewrite of it, is there?
I guess one could run it in a VM, or try to make it work with Mono. But I really like Stereo and high fidelity. ;)
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Graphics performance just (r4474) increased by 66%
« Reply #9 on: 22 June 2013, 19:48:26 »
(I always used to run it with mono.)

jammyjamjamman

  • Administrator
  • Horseman
  • ********
  • Posts: 210
    • View Profile
Re: Graphics performance just (r4474) increased by 66%
« Reply #10 on: 18 July 2013, 20:49:35 »
Sadly, my hardware doesn't seem to reflect these large performance improvements.

Processor: Intel-i5-3210m

My video settings:

Code: [Select]
Resolution: 1600x900

Filter: billinear

Unit Selection type: SelectBuffer (nvidia)

Shadows: projected

Shadow texture size: 512

3d Textures: enabled

Max Lights: 8

Unit Particles: enabled

Tileset Particles: enabled

Animated Tileset Objects: ∞

Texture Compression: disabled

Rain Effect (Menu/ Game): enabled/ enabled

Enable Video Playback: enabled

Results from using benchmark and taking an average from 3 games:

VersionNvidia-gt630m (using primus)Nvidia-gt630mIntel-HD-4000Intel-HD-4000
UpdatefpsRenderfpsUpdatefpsRenderfps
3.7.1 (rev3948)40764065
3.8.0-beta1 (rev4518)40824068

This shows only a 7.9% increase in fps for the Nvidia-gt630m card and a 4.6% increase in fps for the Intel-HD-4000.
"All right, I've been thinking. When life gives you lemons? Don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?'" ~Cave Johnson, Portal 2

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Graphics performance just (r4474) increased by 66%
« Reply #11 on: 18 July 2013, 22:58:29 »
Well, at least some improvement. ;-)
My enjoyment was premature, stemming from the fact that some models were crippled which allowed for the (then) large FPS improvements. Once this was corrected, the results were much closer to what the used to be - but there's still an improvement for some graphics cards, as you were able to reproduce, too.

Will: I don't like Mono, but I like it better than Windows. Could you explain how you made g3dhack work with it, reliably?
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Graphics performance just (r4474) increased by 66%
« Reply #12 on: 19 July 2013, 07:29:10 »
Tomreyn, I think the performance improvements are still possible.

I believe the bug when you saw the speedup was from joining selectable meshes with unselectable ones.  And the fix was to stop doing this, meaning reverting to the previous slow behaviour.

If so, then its easy to fix in a way that maintains the performance improvement instead.  Still join the meshes, but put the unselectable vertices at the end; and instead of a boolean selectable flag, have a count of selectable vertices.

I won't be around nearly often enough to keep reminding titi and softcoder, but hopefully you can be on the case if you want to get back the performance improvements Tomreyn ;)

https://forum.megaglest.org/index.php?topic=8560.msg88133#msg88133