Player Administration is causing performance issuesNot An Issue
5b911dfc75c0d.png ThibmoRozier

^ For more debugging info.. With "It's slow" I can't do shit.
What exact "thing" is slow. what button/action/page. Give me some real world example. Without this info this will just end up being tossed on the "won't fix" pile, which wouldn't help anyone. :)
 
Calling 'PlayerAdministrationSwitchUICallback' on 'PlayerAdministration v1.5.12' took 308ms
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Calling 'PlayerAdministrationSwitchUICallback' on 'PlayerAdministration v1.5.12' took 201ms
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Calling 'PlayerAdministrationSwitchUICallback' on 'PlayerAdministration v1.5.12' took 496ms
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Calling 'PlayerAdministrationSwitchUICallback' on 'PlayerAdministration v1.5.12' took 400ms
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Calling 'PlayerAdministrationSwitchUICallback' on 'PlayerAdministration v1.5.12' took 514ms
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Calling 'PlayerAdministrationSwitchUICallback' on 'PlayerAdministration v1.5.12' took 577ms
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Calling 'PlayerAdministrationSwitchUICallback' on 'PlayerAdministration v1.5.12' took 673ms

Just updated, those times are just switching back and forth between the Main, Online Players, Offline Players and Banned Players screens. Hopefully something can be done to get these times down to something less noticeable by the playerbase. a nearly 700ms hang just loading a screen is horrendus. Switching between 4 screens takes nearly the same amount of time to send a signal to the moon and back.

That's not even a second, no need to balloon this to such proportions, lol. Sureo it's longer then I'd want it to be, but this is the first time I get a hint (Which I thank you for).

Is the slowness the same when opening a player page?
Meanwhile I'll see if I can somehow find what exact thing takes the longest to process.. Guess stopwatch is a no-go but it's worth trying.

Merged post

Update on this, I've added some stopwatching using "Time.realtimeSinceStartup".
For my dev box (a Linux container on a rather active host) I get the following stats (Times shown before the dot are in seconds):
// Opening the menu from nothing
[09:30:15] DEBUG > PlayerAdministrationUICallback was called
//...
[09:30:15] DEBUG > Elapsed time (BuildTabMenu): 0.00219727
//...
[09:30:15] DEBUG > Elapsed time (BuildMainPage): 0.00354004
[09:30:15] DEBUG > Elapsed time (CuiHelper.DestroyUi): 0.00366211
[09:30:15] DEBUG > Elapsed time (newUiLib.Draw): 0.00573731

// Navigating to the online players tab
[09:30:16] DEBUG > PlayerAdministrationSwitchUICallback was called
//...
[09:30:16] DEBUG > Elapsed time (BuildTabMenu): 0.00061035
//...
[09:30:16] DEBUG > Elapsed time (BuildUserBtnPage): 0.00402832
[09:30:16] DEBUG > Elapsed time (CuiHelper.DestroyUi): 0.00402832
[09:30:16] DEBUG > Elapsed time (newUiLib.Draw): 0.00476074

// Navigating to the banned players tab (Got a bunch of people in there from the game banned player twitter feed)
[09:30:18] DEBUG > PlayerAdministrationSwitchUICallback was called
//...
[09:30:18] DEBUG > Elapsed time (BuildTabMenu): 0.00061035
//...
[09:30:18] DEBUG > Elapsed time (BuildUserBtnPage): 0.00280762
[09:30:18] DEBUG > Elapsed time (CuiHelper.DestroyUi): 0.00292969
[09:30:18] DEBUG > Elapsed time (newUiLib.Draw): 0.00378418​

Here is the debug version with debug set to true: https://pastebin.com/KnkcuFwN

Merged post

These times will be put in playeradmin's log file, by the way.
There will be a bunch more stuff logged there, that's all fine to ignore (I also just realized I pushed the last few updated with the debug flag enabled, whoops.. Since v1.5.6 to be precise.)

This is from opening a player page.

Calling 'PlayerAdministrationSwitchUICallback' on 'PlayerAdministration v1.5.12' took 525ms

I'll get the debug log to you asap

 

I use it a LOT and have not noticed any lag. 
Closing this since there is 0 response, so issue doesn't exist. :)
Locked automatically