jameslkingsley / mars

Mars is a total Zeus replacement providing Arma communities with a customisable editor capable of realtime mission creation and enhancement.
https://mars.arcomm.co
GNU General Public License v3.0
20 stars 7 forks source link

PFH code needs major refactor and redesign #64

Closed jameslkingsley closed 7 years ago

jameslkingsley commented 8 years ago

There is a lot of code running per-frame and it's all over the place. Multiple per-frame functions call objectUnderCursor and repeat a lot of stuff. This is causing pretty terrible FPS issues.

jameslkingsley commented 8 years ago

PF = Per-Frame C = Conditional

openEditor:

jameslkingsley commented 8 years ago

Also a bunch of functions repeated in Mouse[Up, Down, Moving] that could otherwise be stored once per-frame.