GithubHelp home page GithubHelp logo

Comments (5)

Friksel avatar Friksel commented on May 18, 2024

Could it perhaps be related to this issue from years ago?:

pixijs/pixijs#746

from pixi3d.

jnsmalm avatar jnsmalm commented on May 18, 2024

Do you have an example which sometimes reproduces this error?

from pixi3d.

Friksel avatar Friksel commented on May 18, 2024

@jnsmalm Sorry, can't send you the project. When debugging I would try to create a new, small, project to isolate an issue. But the thing is that yesterday when I tried to debug this the issue didn't happen once and couldn't replicate it. While at other times it happens every two or third time the model is shown. It seems completely random.

I did change a little thing now tho, I was first changing the resolution of the sprite to a value that had a lot of decimals, because Javascript didn't seem to be able to do a simple calculation like 41*0.01. It didn't result in 0.41, but in 0.41000000000000003 instead. Which to me is weird (try it yourself in a Chrome dev console: console.log(41*0.01). Now I'm using toFixed(2) to round instead. As you understand, it would be weird if this would be the reason of the issue, but who knows.
So I'm sure this issue is still there, only I don't know when it happens.

Long story short, it's a little difficult to create a small demo if not sure what exactly to isolate and when exactly this issue appears so we can replicate it.

from pixi3d.

jnsmalm avatar jnsmalm commented on May 18, 2024

Sorry, not much I can do without steps to reproduce as I have never encountered this myself. Please let me know if/when you have more information. Btw, the floating point issue is not a JavaScript thing - it's a computer thing :-)

from pixi3d.

Friksel avatar Friksel commented on May 18, 2024

@jnsmalm Thanks for your reaction. I understand and I don't expect you to. I was just hoping by chance you encountered the same message once and could point me into a direction. I get the feeling it has something to do with either setting the resolution or the size as that's what this project is constantly doing. On the other hand, it's never dissapearing when zooming in or out. Only when switching the sprite on or off.

Anyway, too much information for you as you don't know the project ;) Pretty busy with other things now, but when I know what's causing this I'll let you know. If by any chance you encounter the same messages somewhere, I'm all ears.

Btw, the floating point issue is not a JavaScript thing - it's a computer thing :-)

My floating point, binary and machine language/opcodes education is a long time ago but I figured it would :)

from pixi3d.

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.