Nowhere-01
05-24-2011, 04:19 AM
Hey, yesterday i thought about replacing my float vertex attributes with half float, so i made it, i used HalfFloat class to store data and GL_HALF_FLOAT when passing to VBO. It was surprisingly easy to implement.
And so i expected at least noticeable performance boost. But really...no difference. I've tested it with 220k triangle model with phong, bump and 3 dynamic lights. Niether on high end system with GTX295 neither on piece of crap with integrated 6150SE it didn't affect performance noticeably.
Maybe it's because badly written shaders? Maybe they could become bottleneck(with scene described above it's 290-512 FPS on GTX295 and about 1-5 on 6150SE. i don't really know how to optimize my phong shading/normal mapping algorithms).
Also i afraid, that it will be incopatible with some adapters.
And so i expected at least noticeable performance boost. But really...no difference. I've tested it with 220k triangle model with phong, bump and 3 dynamic lights. Niether on high end system with GTX295 neither on piece of crap with integrated 6150SE it didn't affect performance noticeably.
Maybe it's because badly written shaders? Maybe they could become bottleneck(with scene described above it's 290-512 FPS on GTX295 and about 1-5 on 6150SE. i don't really know how to optimize my phong shading/normal mapping algorithms).
Also i afraid, that it will be incopatible with some adapters.