nkrisztian89 / interstellar-armada

A Javascript-WebGL 3D space combat game under development.

Home Page:http://nkrisztian89.github.io/interstellar-armada

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor resetForNewFrame()

nkrisztian89 opened this issue · comments

  • resetForNewFrame() calls can take 4.5-4.8% of total time with shadows and dynamic lights off
  • the code can be refactored to not need it - a frame counter can be implemented and cached values can be marked with the frame number - so on a new frame, only the counter needs to be incremented