GithubHelp home page GithubHelp logo

Comments (5)

TonyBarbour avatar TonyBarbour commented on August 14, 2024

I noticed an exchange on this on the khronosdevs.slack #vulkan channel. Did you file an issue with Nvidia?

from vulkansamples.

jeremyong avatar jeremyong commented on August 14, 2024

Hey, the best I can gather is that the claim is the app needs to respond to X11's request to resize the window in order to paint before the next swap. As I'm less familiar with the X11 protocol, I may need to defer to someone's expertise who knows more until I find time to research it myself.

from vulkansamples.

TonyBarbour avatar TonyBarbour commented on August 14, 2024

When I resize Hologram, the window goes dark until I stop the resize and then the rendering continues. Is that what you're seeing?

Resizing in general is an expensive operation and the X server sends dozens of XCB_CONFIGURE_NOTIFY events as the window resizes, each requiring the sample to tear down the swapchain, and create a new swapchain using the new window size.

One thing you can try is to turn off vertical sync. That will cause the sample to use VK_PRESENT_MODE_IMMEDIATE_KHR instead of VK_PRESENT_MODE_FIFO_KHR and the resize looks smoother at the risk of seeing tearing in the rendering.

from vulkansamples.

TonyBarbour avatar TonyBarbour commented on August 14, 2024

I forgot to mention that you turn off vertical sync by running Hologram with "-b" on the command line.

from vulkansamples.

TonyBarbour avatar TonyBarbour commented on August 14, 2024

Not sure what more Hologram can do to smooth resize, so closing this issue. Re-open if you feel there's more to be addressed

from vulkansamples.

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.