I need to measure performance of 4 shading models - Default Lit and 3 custom models (first is similar to Default Lit and third is Blinn-Phong). I created them modyfing UE 4.22.3 source code (cpp and shaders).
I’ve created a scene that contains over 8k spheres (positioned like a cube). All of them have one material that I change its shading model when I want to test the next model.
Currently, I’m measuring performance by computing the avg delta time of last 100 frames (in Tick function of C++ class). Then I print it to Output Log. Unfortunetely, I couldn’t see any difference in those times.
I tried to turn off some optimizations (like Static Lighting uses or I switched those spheres from static to movable). Then I enabled forward rendering. Now I can see in Stats window that:
- Default Lit costs 613 instructions,
- 1st custom model costs 625 instructions,
- 2nd custom model costs 624 instructions,
- 3rd custom model (Blinn-Phong) costs 532 instructions.
Yet, I still can’t see any difference in performance.
Does anyone have an idea what I can do to make those differences noticeable?