google / bigwheels

BigWheels is a cross-platform, API agnostic framework to build graphics applications.
Apache License 2.0
94 stars 37 forks source link

Test case to run number of ALU instructions #500

Closed RenfengLiu closed 3 months ago

RenfengLiu commented 3 months ago

added a new knob vs-alu-instruction-count. The sample can be run with following knobs: "enable-skybox": false, "enable-spheres": false, "enable-metrics": false, "fullscreen-quads-count": 1, "fullscreen-quads-type": "Solid_Color", "fullscreen-quads-single-renderpass": true, "alu-instruction-count": 200

RenfengLiu commented 3 months ago

One issue with this sample is it's not exactly 100/200/300/4000 instructions in the Dive capture,

actually the number of instructions is the same, since it's using the loop in the shader. the cycles needed should be different though.

wangra-google commented 3 months ago

One issue with this sample is it's not exactly 100/200/300/4000 instructions in the Dive capture,

actually the number of instructions is the same, since it's using the loop in the shader. the cycles needed should be different though.

no worries, doesn't have to be the exact number, just want to see the ALU impact on power consumption