mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
A profile of about 9,000 vessels following a playing world clock spent ~13 ms of every frame in the clock pass, moving every drawn vessel a fraction of a pixel, and ~4 ms more re-uploading their billboards. - Drawn vessels move again once the fastest would have moved half a pixel on screen at the speed each last moved (measured from the world time it was drawn at), at least once a second, and at once when the camera moves or changes height by a tenth of its height or the view zooms. A pass that holds them back asks for a frame, so a paused clock settles on the time. - Hidden vessels move a share of them each pass, each within 250 ms, rather than all of them in one frame; the visibility pass moves one coming into view to the time first. - A vessel's three positions are written from one surface point and normal (Cesium's own formula) instead of three fromDegrees calls; the unused normal is dropped. The great-circle step builds no arrays. The pass falls from 4.6 ms to 0.37 ms a frame on average in a benchmark of 9,000 vessels (3,000 drawn) at 240 frames a second.