Spy-Shifty / BrokenBricksECS

Rebuild of Unity3D upcoming Entity Component System !OUT OF DEVELOPMENT!
MIT License
162 stars 28 forks source link

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

Closed Filtiarn00 closed 6 years ago

Filtiarn00 commented 6 years ago

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

Filtiarn00 commented 6 years ago

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 commented 6 years ago

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

Spy-Shifty commented 6 years ago

I fixed this problem 0ed8c5bd2d9bb7738dd34239179b9783ab51e85c

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