Code Monkey home page Code Monkey logo

Comments (10)

neauoire avatar neauoire commented on May 20, 2024 1

Okay! I will give this a shot after lunch, stay tuned :)

from rx.

cloudhead avatar cloudhead commented on May 20, 2024

That looks like you're missing vulkan drivers or vulkan support. I should provide an error for this :)

from rx.

neauoire avatar neauoire commented on May 20, 2024

Same error here on Elementary, I'd love to know how to fix this.

from rx.

cloudhead avatar cloudhead commented on May 20, 2024

Since Elementary is ubuntu-based, you have to install the ubuntu vulkan drivers, provided your hardware supports vulkan. At the very least, that's the mesa-vulkan-drivers package, and possibly libvulkan1 and vulkan-utils.

from rx.

cloudhead avatar cloudhead commented on May 20, 2024

Perhaps this helps: https://linuxconfig.org/install-and-test-vulkan-on-linux

from rx.

cloudhead avatar cloudhead commented on May 20, 2024

You can try the OpenGL branch now: cargo install --git https://github.com/cloudhead/rx --locked --branch f/gl --features compatibility

from rx.

neauoire avatar neauoire commented on May 20, 2024

Screenshot from 2020-01-05 10-53-02@2x

It has a few issues, when booting, the canvas is all the way hidden in the top right, and the tablet cursor doesn't seem to adapt to retina pixel ratio, so the cursor is always off from where it actually is.

from rx.

cloudhead avatar cloudhead commented on May 20, 2024

@neauoire is the first issue resolved after you resize the window? Also if you look at the log output, does it log a hidpi factor of 2?

I'm not able to reproduce this on a retina macbook pro (osx) 🤔

Make sure you pull recent changes, the branch has been merged into master.

from rx.

cloudhead avatar cloudhead commented on May 20, 2024

Investigating a bit more, I can reproduce if I wrongly force my laptop's hidpi factor to 2, even though it should be 1. Could you try this, but the other way around? Change this https://github.com/cloudhead/rx/blob/master/src/lib.rs#L117 to let hidpi_factor = 1.0; and see what happens 👀.

What's happening is that it's creating a framebuffer that is 2x the size of your window, hence you only see the left corner of it!

from rx.

cloudhead avatar cloudhead commented on May 20, 2024

Closing this, as GL support landed in master.

from rx.

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.