I have a weird issue on opengl. I am rendering a lot of tris (millions) using vertex arrays.
Here is the issue.
If I load up the tris and display as shaded with a constant color, the video memory is showing around 600MB.
If I then change the color array values to be varied at different vertex, the memory usage increases to around 1GB.
If I then spin the model around, the memory usage slowly decreases to around 600MB (after a couple of minutes).
But, if I load up the model straight away with varied shading, the memory is only 600MB.
This is on linux, so is it a driver issue ? Or is there something more obvious I am neglecting.
I am using nvidia-smi to check the graphics memory usage.
Cheers in advance for any help !