CRNfix Engine Version: better replay performance - Page 2

CRNfix Engine Version: better replay performance

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: CRNfix Engine Version: better late game performance

Post by gajop »

What if he lost the source?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: CRNfix Engine Version: better late game performance

Post by smoth »

then his fork would be even more a waste of everyone's time.
User avatar
AntiAllez
Posts: 105
Joined: 06 Mar 2012, 18:22

Re: CRNfix Engine Version: better late game performance

Post by AntiAllez »

interesting approach, how much time is probably connected that everyone together wasted by laggames? maybe a lifetime or even more? :regret:
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: CRNfix Engine Version: better late game performance

Post by smoth »

Stop playing 8vs8 dsd lol
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: CRNfix Engine Version: better late game performance

Post by FabriceFABS »

Not only.
Also *MAP*Metal games, and *MOD*Chiken games...
User avatar
scifi
Posts: 848
Joined: 10 May 2009, 12:27

Re: CRNfix Engine Version: better late game performance

Post by scifi »

We can sit here to the end of times hearing about the so called 300% performance increase, if theres no source theres also no real credible tests to rely upon. And especially with a GPL violation on it.

Anyways i think the devs are working on a improved threaded release for Spring so hopefully we can get pass this and actually move on.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: CRNfix Engine Version: better late game performance

Post by smoth »

Pfft I am going on with my life, steadily making recent advances.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: CRNfix Engine Version: better late game performance

Post by jK »

blabla ignoring zerver blabla
back to topic!

Did some visual profiling and wrote a grapher that shows how Spring spends time:
Image

You see that `Frame Grapher` which displays the last half second and its time slices:
  • green are video frames
  • red are simframes
  • blue is swapBuffer (gpu/vsync)
  • pink is lua gc
It directly shows that something is wrong in GC (sure ZK creates likely a lot of garbage but it wouldn't explain what we see), so I tweaked the GC a bit and got this:Image

MUCH better already (it likely solves 90% micro lagging in ZK, but it won't solve the ones in BA what spends much less time in GC even in 96!).
When you take a close look at the simframes you notice that there is a semi huge gap after each of it, those range from 1ms upto ~50ms (maybe something SDL or NetCode related) and are very likely one cause of microlags (additional to uneven simframe length, but that's another topic).
Atm I don't know what Spring is doing in those gaps yet, needs further investigation.
Attachments
after.jpg
(167.34 KiB) Downloaded 1 time
before.jpg
(180.02 KiB) Downloaded 1 time
Last edited by jK on 05 Feb 2014, 13:10, edited 1 time in total.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: CRNfix Engine Version: better late game performance

Post by gajop »

Nice post, pretty informative. Is information how people can do this kind of visual profiling available? It seems pretty useful.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: CRNfix Engine Version: better late game performance

Post by Beherith »

Excellent work, jK!

BAR uses more lua, especially more luaui, so it will definitely be a boon there.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: CRNfix Engine Version: better late game performance

Post by jK »

k seems to be multiple stuff in CGame::UpdateUnsynced that accumulates every now and then to peaks. Need to find the biggest of those now and why they relate to simframe updates.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: CRNfix Engine Version: better late game performance

Post by Silentwings »

Nice! Is that going to be the default view with /debug in 97.0?
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: CRNfix Engine Version: better late game performance

Post by Google_Frog »

I like that visualisation and the GC tweak sounds great.
muckl
Posts: 151
Joined: 30 Aug 2010, 07:18

Re: CRNfix Engine Version: better late game performance

Post by muckl »

+1 for this visualisation
Post Reply

Return to “General Discussion”