RimWorld

RimWorld

Realistic Lighting and Shadows
ferny 19. okt. kl. 23:06
Performance discussion
Hey, here's the discussion
< >
Viser 1-15 af 16 kommentarer
Sjaandi  [udvikler] 19. okt. kl. 23:08 
Great! Thank you!

Can you send me a screenshot with the performance analyzer stats, as well as map size and possibly a screenshot of the map if you're okay with sharing that?
ferny 19. okt. kl. 23:12 
I'm testing on a small list and it does seem to be a non-issue there. It must be a mod-conflict or something. I will send you detailed information about the full pack issue.
ferny 19. okt. kl. 23:16 
Okay i'm seeing a major jump off the bat if used on a modlist with just this and "Minimal Light Control" which works alongside this mod typically if MLC is loaded after RLS.
Sjaandi  [udvikler] 19. okt. kl. 23:18 
That is useful to know - it is a popular mod used with this one.
ferny 19. okt. kl. 23:19 
@Sjaandi I'm trying to profile the methods but whatever is the most expensive isn't showing, maybe cause its offloaded to the gpu or something.
Sjaandi  [udvikler] 19. okt. kl. 23:20 
@Jacbo had the following in another discussion - adding it here for reference:

I'm seeing an average 3+ and sometimes 4+ ms for RealTiltMod.Patch_SectionLayerThings_Regenerate_On_Sun_Direction_Change:Prefix with constant 20+ ms spikes and if I profile the internal methods, I see an average ~1.5 ms on HarmonyLib.AccessTools:Method with constant 8+ ms spikes and a ~1.2 ms average on System.Reflection.MethodBase:Invoke with constant 6-8 ms spikes. Settings are mostly default. Only changed settings are enabling growing patches.Stuttering is the worst when my colony is on screen which only consists of about 6 buildings
Sjaandi  [udvikler] 19. okt. kl. 23:22 
So - the method should only cause a performance hit when rotates 90 degrees around the sky. If That should be approximately every 6 hours starting at 6am (12pm, 6pm, 12am).
Are you seeing it more often than that?
ferny 19. okt. kl. 23:24 
@Sjaandi From my memory i'm getting 0.5-2ms constantly, except for night time. I'm testing my full modlist now without Minimal Light to see if there's anything else going on
ferny 19. okt. kl. 23:36 
@Sjaandi Did the test on the full list, can confirm issue is just caused by the Minimal Lighting thing. If you could make it so that doesn't happen i'd be eternally grateful, or maybe just integrate the feature into your mod itself.
ferny 19. okt. kl. 23:37 
I spoke too soon, its back up
ferny 19. okt. kl. 23:38 
System.Reflection method base invoke
ferny 19. okt. kl. 23:39 
Going from 2ms-5ms
Sjaandi  [udvikler] 19. okt. kl. 23:40 
Is that with Minimal Light Control or WIthout?
ferny 19. okt. kl. 23:43 
Without. Also "SectionLayerThings_Regenerate_On_Sun_Direction_Change" prefix shooting up to 2ms now that its daytime and other one went down. This is on day two of a colony with a dev quicktest map (small)
ferny 19. okt. kl. 23:48 
I'm looking on another user's computer rn, System.Func Invoke is super expensive on hers
< >
Viser 1-15 af 16 kommentarer
Per side: 1530 50