Code Monkey home page Code Monkey logo

Comments (9)

MarcFauconneau avatar MarcFauconneau commented on May 29, 2024

pics or it didn't happen

from ispctexturecompressor.

sfider avatar sfider commented on May 29, 2024

Few examples as requested:
example.zip

from ispctexturecompressor.

MarcFauconneau avatar MarcFauconneau commented on May 29, 2024

I can't seem to reproduce similar files at all, and I tried all profiles. What exactly did you use?

from ispctexturecompressor.

sfider avatar sfider commented on May 29, 2024

I used basic profile:
mode_selection: {true, true, true, true}
refineIterations: {2, 2, 2, 2, 2, 2, 2, -858993460}
skip_mode2: true
fastSkipTreshold_mode1: 12
fastSkipTreshold_mode3: 8
fastSkipTreshold_mode7: 0
mode45_channel0: 0
refineIterations_channel: 2
channels: 3

I'm using multiple threads for compression of one texture slicing it to 8 equal parts if possible. Using one thread per texture didn't help.

from ispctexturecompressor.

sfider avatar sfider commented on May 29, 2024

I've prepared examples done on single thread with no other thread working simultaneously: example_singlethread.zip

from ispctexturecompressor.

MarcFauconneau avatar MarcFauconneau commented on May 29, 2024

I am definitively not getting the same results with the basic profile. Are you sure you are using the last version on the repository?

Also, can you avoid mipmaps in your examples? The main textures in your examples 01, 03 & 04 are exactly the same...

from ispctexturecompressor.

sfider avatar sfider commented on May 29, 2024

Yes, I'm using the latest version. I've done some changes with initializing local arrays, but it shouldn't make a difference for worse?

As for mipmaps, they just give more examples, I suppose. I've tested that each time mipmaps are generated the same. The difference appears after compression. I'll double check if I didn't miss anything [EDITED: I forgot my own files naming]

Is there any chance that heavy use of multithreading could break something? I looked through the code, and couldn't find anything.

I'll try to prepare some isolated code that will exhibit this nondeterministic behaviour.

from ispctexturecompressor.

MarcFauconneau avatar MarcFauconneau commented on May 29, 2024

I saw one block difference in picture 02, that's it. But what concerns me more is that I can't reproduce your results at all from the .tga file,

Basic profile produces completely different results, with significantly higher quality. For instance:

01_a.dds: RGB psnr = 46.305 dB (01_b is exactly the same data)
basic profile: RGB psnr = 46.778 dB
(using 01.tga as a reference for all)

from ispctexturecompressor.

sfider avatar sfider commented on May 29, 2024

My bad, I've rebuild the library, but forgot to swap the DLL file. So I was using the old version all along. Everything is fine now.

from ispctexturecompressor.

Related Issues (20)

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.