miniplex
                                
                                 miniplex copied to clipboard
                                
                                    miniplex copied to clipboard
                            
                            
                            
                        Instrumentation Ideas/Draft
I'm working on a Miniplex world inspector for my game:
https://user-images.githubusercontent.com/1061/193662735-a2c76ca0-5dc8-4e39-9bc5-8dae1b8f44f0.mov
It would be great to add some instrumentation features to Miniplex' World class to make it easier for tools like this to get useful instrumentation data.
Things that might be nice to measure:
- [x] Total number of entities
- [x] Total number of archetypes
- [x] Components of individual archetypes
- [ ] Number of active subscribers on each archetype
- [ ] Archetype "pressure" (rate of entities added or removed). This can be useful to identify archetypes that aren't really used much (but still infer an indexing cost every time an entity is added/removed/modified.)
- [ ] Average time needed to add/index/remove entities
Ideas:
- Making the numbers flash green or red as they increase / decrease. Or even better, some temporary "+3" or "-2".
- Making it possible to see the entities details. That might not work great for archetypes that have a lot of very quickly added/removed entities, but it would be very useful to inspect more stable ones.