Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Debug System Behaviour shows incorrect number of Update Systems. #24

Closed
Filtiarn00 opened this issue Jan 18, 2018 · 3 comments
Closed

Comments

@Filtiarn00
Copy link

Here is a picture.
https://forum.unity.com/attachments/capture-png.262905/

@Filtiarn00
Copy link
Author

Filtiarn00 commented Jan 18, 2018

Got It to be correct.

Under Debug Systems I changed in totalOnUpdateSystemsCount
I changed
total += debugSystems != null ? debugSystems.totalOnUpdateSystemsCount : _updateSystemInfos.Count;
to
total = debugSystems != null ? debugSystems.totalOnUpdateSystemsCount : _updateSystemInfos.Count;
this works to
total += debugSystems != null ? 0 : 1;

This should be done for Start and Fixed Update as well.

@Spy-Shifty
Copy link
Owner

Thank you I'll integrate this in the next update :)

@Spy-Shifty
Copy link
Owner

I fixed this problem 0ed8c5b

Your solution wasn't 100% correct.

See commit.
But thank you anyway :)

Ps: You can group Systems together. So you can disable a group of systems or to monitor the total performance of the systems.
Just use the DebugSystemGroup Attribute

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants