Peformance: streamline uniform upload
Instead of coyping and uploading the uniforms one by one move them around as arrays, just like they are passed from the guest and allocated in the shaders.
This improves performance measured with Unigine Heaven (~20%) and Valley (~10%). For Google Chrome Aquarium example the speed-up is (on r600):
- 1000 fish: 30-33 FPS -> 34-35 FPS
- 5000 fish: 17-18 FPS -> 19-20 FPS
- 10000 fish: 11 FPS -> 13 FPS
Edited by Gert Wollny