Querijn / LeagueModel

A League of Legends Model Viewer
MIT License
26 stars 4 forks source link

Optimise FindNearestTime #4

Closed Querijn closed 5 years ago

Querijn commented 5 years ago

I lose half my FPS over the full duration of Little Devil Teemo's recall animation, from 144~ FPS to 69~ FPS.. This needs a binary search, probably

Querijn commented 5 years ago

I've opted for stashing the index, meaning it doesn't search through the whole array every time.