Giter Site home page Giter Site logo

Comments (6)

theWatchmen avatar theWatchmen commented on June 26, 2024 1

I noticed this as well today. On Windows we have no leaks, so this must be something that is specific to Linux. I'll take a look.

from mastering-graphics-programming-with-vulkan.

theWatchmen avatar theWatchmen commented on June 26, 2024

Interesting, the surface creation should be handled by SDL. Could you provide more details about the system you are running on? GPU and driver version would be a good start.

from mastering-graphics-programming-with-vulkan.

mslinklater avatar mslinklater commented on June 26, 2024

Sure - I'm running on a laptop with both integrated and dedicated GPU - integrated is Intel UHD 630, dedicated is NVidia 1070. OS is PopOS 22.04LTS, which is a derivative of Ubuntu 22.04. X11 windowing system,

I've included the output of 'vulkaninfo' for vulkan setup.

vulkaninfo.zip

from mastering-graphics-programming-with-vulkan.

theWatchmen avatar theWatchmen commented on June 26, 2024

Ah, interesting. I think what might be happening is that the Intel integrated card is being picked up, rather than the discrete NVidia device. In chapter 1 we simply pick the first GPU available, which in your case could be the Intel one. From Chapter 4 we improved the selection to try and pick a discrete GPU first if available. You could try and copy the code from that chapter to see if it fixes the issue: https://github.com/PacktPublishing/Mastering-Graphics-Programming-with-Vulkan/blob/main/source/chapter4/graphics/gpu_device.cpp#L237

from mastering-graphics-programming-with-vulkan.

mslinklater avatar mslinklater commented on June 26, 2024

Thanks - that fixes it. At least it boots and runs... I do however get a memory leak notification when I close the app. Not sure where it's coming from... I've included the diff of my changes for you. Thanks.

Found active allocation 0x7fffedb8e5b0, 160
Found active allocation 0x7fffedb8e658, 168
Found active allocation 0x7fffedb8fb30, 160
Found active allocation 0x7fffedb8fbd8, 168
HeapAllocator Shutdown.
temp.zip

===============
FAILURE! Allocated memory detected. allocated 656, total 33560976

from mastering-graphics-programming-with-vulkan.

packt-irfaa avatar packt-irfaa commented on June 26, 2024

Thank you @theWatchmen I am closing the issue.

from mastering-graphics-programming-with-vulkan.

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.