BurkusCat / r6-operator-counters

A website with a graph visualisation of how operators counter each other in Rainbow Six Siege.
https://r6counters.com
MIT License
68 stars 37 forks source link

Fix compositing performance (3x improvement) #208

Closed BurkusCat closed 2 years ago

BurkusCat commented 2 years ago

How to test

Comment out tickRelationshipOutlines(); in neo4jd3.js like this:

            tickRelationshipsTexts();
            //tickRelationshipsOutlines();
            tickRelationshipsOverlays();

This removes other bottlenecks. Compare the performance of dragging around icons before vs after this change.

Before (75ms total task time~, around 50ms is compositing): image

After (25ms total task time~, around 1ms is composting): image

Reference: https://stackoverflow.com/a/40533907/3991315

BurkusCat commented 2 years ago

Improves #8