New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++: SSE intrinsics for HitSpheres, switch to larger scene #9

Merged
merged 6 commits into from Apr 11, 2018
Commits on Apr 10, 2018
  1. simd: initial attempt at HitSpheres with SSE intrinsics (I probably d…

    aras-p committed Apr 10, 2018
    …o a ton of stupid things there!)
    
    - PC 186 -> 190  Mray/s
    - Mac 49.8 -> 54.0 Mray/s
Commits on Apr 11, 2018
  1. simd: slightly less stupid SIMD HitSpheres implementation, aka "use t…

    aras-p committed Apr 11, 2018
    …he masks, aras!"
    
    Also keep the non-SIMD codepath there too, for easier comparison.
    - PC 190 -> 194  Mray/s
    - Mac 54.0 -> 55.2 Mray/s
  2. simd: enable SSE4.1 codegen and usage of blend instruction for selects

    aras-p committed Apr 11, 2018
    - PC 194 -> 195  Mray/s
    - Mac 55.2 -> 56.1 Mray/s
  3. Add option for a larger scene (46 spheres instead of 9), since with o…

    aras-p committed Apr 11, 2018
    …nly 9 the SIMD HitSpheres is not that useful :)
    
    - HitSpheres SSE, SoA layout, float3 SSE: PC 107, Mac 30.1 Mray/s
    - SoA layout, float3 SSE: PC 78.8, Mac 17.4 Mray/s
    - SoA layout: PC 80.6, Mac 16.7 Mray/s
    - float3 SSE: PC 65.0, Mac 13.9 Mray/s
    - none of the above: PC 48.0, Mac 12.3 Mray/s
  4. Make GPU option work again, move more config tweaks into Config.h, ad…

    aras-p committed Apr 11, 2018
    …d comments
    
    - GPU GeForce 1080 Ti, DX11: 648 Mray/s
    - GPU Intel Iris Pro, Metal: 41.8 Mray/s
    
    - HitSpheres SSE, SoA layout, float3 SSE: PC 107, Mac 30.1 Mray/s
    - SoA layout, float3 SSE: PC 78.8, Mac 17.4 Mray/s
    - SoA layout: PC 80.6, Mac 16.7 Mray/s
    - float3 SSE: PC 65.0, Mac 13.9 Mray/s
    - none of the above: PC 48.0, Mac 12.3 Mray/s
  5. win: set window size correctly

    aras-p committed Apr 11, 2018