keeptrack.space
keeptrack.space copied to clipboard
Replace Vec4 Colorbuffer with Float
User Story
- As a developer
- I want colors to be passed to the GPU as a single integer instead of a vec4
- So that far less resources are required for displaying color
Acceptance Criteria
- Given dots are drawn to the screen correctly
- When dotsManager.draw is called
- Then the color attribute will only require a single integer
Commentary
Currently every color is passed as a vec4 but it is almost always the same colors. Replacing these with integers that correspond to a uniform dictionary of colors would be way more efficient. This limits the ability to use gradient colors, but may be worth it for the performance gain.