keith2018 / spvm

Tiny C++ SPIR-V virtual machine (interpreter), can be used for shader debugging. Spvm-ShaderToy simulated the runtime environment of shadertoy, and execute shader code using SPVM.
MIT License
141 stars 26 forks source link

Performance way too slow #28

Open danilw opened 2 years ago

danilw commented 2 years ago

I think this project spvm does not use "SIMD vector optimizations" this why performance is slow.

Maybe adding SIMD optimizations can be added to TODO of this project.

Result of this project spvm spvm_shadertoy XdlSDs.frag - 5 fps 2

Result of llvmpipe (CPU) - on 1280x720 resolution 160-190 fps 1

keith2018 commented 2 years ago

Yes, optimizations such as SIMD/JIT/AOT should be implemented to make it more faster, it is in the TODO list now