Code Monkey home page Code Monkey logo

Comments (8)

fire avatar fire commented on August 18, 2024

Saw ISPC can emit c++.

mkdir build
cd build
..\ispc -g -O2 "../bc7e.ispc" -h "bc7e_ispc.h" --target=generic-x64 --opt=disable-assertions --emit-c++ -o "bc7e_ispc.cpp"

from bc7e.

fire avatar fire commented on August 18, 2024
  1. emit-c++ has been removed from the latest version of ispc
  2. emit-llvm requires llc to compile the bitcode
  3. emit-asm I couldn't get to work
  4. shipping ispc is not a good option
  5. requiring developers to use ispc is hard

from bc7e.

richgel999 avatar richgel999 commented on August 18, 2024

Your findings are very interesting. I was under the impression that ispc usage is pretty common, even on consoles (surprisingly). (FWIW, we've made license deals off our ispc code.) I have an pure C++ alternative which I could port the ispc code to (cppspmd_fast), which would eliminate ispc completely.

from bc7e.

fire avatar fire commented on August 18, 2024

from bc7e.

fire avatar fire commented on August 18, 2024

@richgel999 Keep me posted about any releases of a SIMD C++ bc7 compressor.

from bc7e.

fire avatar fire commented on August 18, 2024

Thanks I was able to embed this into Godot.

Having trouble investigating why the default is degraded though.

Degraded. Flag 3, perceptual on. INTERPOLATE_LANCZOS (on) is 1.5s, billinear is 0.8s. Trying lod texure bias -2.

image

Loss-less

image

from bc7e.

fire avatar fire commented on August 18, 2024

Something went horribly wrong.

Luma  Max error: 186.000000 RMSE: 11.887165 PSNR 26.629238 dB

RGB   Max error: 190.000000 RMSE: 12.718388 PSNR 26.042162 dB

RGBA  Max error: 190.000000 RMSE: 11.014447 PSNR 27.291550 dB

Alpha Max error: 0.000000 RMSE: 0.000000 PSNR 10000000000.000000 dB

# official encoder
Total time: 0.252000 secs
Total time: 0.090000 secs
Wrote DDS file unpacked_output.png
Luma  Max error:   9 RMSE: 0.485853 PSNR 54.40 dB
RGB   Max error:  24 RMSE: 0.806147 PSNR 50.00 dB
RGBA  Max error:  24 RMSE: 0.765902 PSNR 50.45 dB
Alpha Max error:   1 RMSE: 0.629923 PSNR 52.15 dB
Wrote PNG file clay-banks-ZNUh3gpkt1s-unsplash-crop_unpacked.png
Wrote PNG file clay-banks-ZNUh3gpkt1s-unsplash-crop_unpacked_alpha.png

from bc7e.

fire avatar fire commented on August 18, 2024

Resolved https://github.com/fire/godot/tree/bc7e.

64 bit address is not compatible from ispc.

from bc7e.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.