GithubHelp home page GithubHelp logo

Running Bastion on VisionFive 2 about box64 HOT 14 CLOSED

ksco avatar ksco commented on July 4, 2024
Running Bastion on VisionFive 2

from box64.

Comments (14)

xctan avatar xctan commented on July 4, 2024 1

Tested and have the same issue in qemu-user. By bisecting commits, the culprit is 93abd016 and I plan to fix it.

from box64.

xctan avatar xctan commented on July 4, 2024 1

@ptitSeb, Bastion now works without rotation.

from box64.

ptitSeb avatar ptitSeb commented on July 4, 2024

Wow, that is really odd!
Yeah, gl4es should support bastion (but I haven't tried it for a long time). I need to check on an ARM device if it runs fine also.

from box64.

xctan avatar xctan commented on July 4, 2024

Detailed examination reveils that this game is using x87 FSIN and FCOS to calculate sin() and cos(). FSTP is used to retrieve the result from x87 regs, which is implemented in the above commit and happens to trigger a bug in JIT'ed trigonometric functions, so everything coincidentally rotates 45 degrees.

from box64.

ptitSeb avatar ptitSeb commented on July 4, 2024

Ok, I found some issue with a few x87 helper function. I haven't tested Bastion yet, but I guess it should help. Can you try with latest sources?

from box64.

ksco avatar ksco commented on July 4, 2024

Wow, nice. I’m still on my vacation, I’ll try it later today.

from box64.

ksco avatar ksco commented on July 4, 2024

Does the gameplay works also? It failed with some errors directly displayed on the game window before the fix.

from box64.

xctan avatar xctan commented on July 4, 2024

Gameplay works at around 14 fps.

from box64.

ksco avatar ksco commented on July 4, 2024

Great, I’ll try on VF2 later. And we’re now have another test target, seems a lot of opcodes are missing for this game.

from box64.

ksco avatar ksco commented on July 4, 2024

It works on VF2 also (gameplay fps is under 10), but in full-screen mode, the screen will jump and flicker, not sure what the issue is.

from box64.

ptitSeb avatar ptitSeb commented on July 4, 2024

It can be a gl4es issue.

from box64.

ksco avatar ksco commented on July 4, 2024

It can be a gl4es issue.

Yeah, probably. @xctan did you try full-screen on your qemu-user setup? Is it function well?

from box64.

xctan avatar xctan commented on July 4, 2024

This game runs in full-screen (by default) without any glitch on my setup.

from box64.

ksco avatar ksco commented on July 4, 2024

Then it probably is a gl4es issue.

from box64.

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.