Giter VIP home page Giter VIP logo

Comments (4)

bkaradzic avatar bkaradzic commented on May 24, 2024

My guess is that with your change example is running out of transient buffers. Solution is to increase size of transient buffers. But that's for user to determine how big transient buffers need to be for their specific use case.

from bgfx.

hartcw avatar hartcw commented on May 24, 2024

Thanks for the suggestion, I tried playing with that, but I don't think its the reason.
Looking at getCaps() and getStats() after I submit my rendering, it shows:

caps->limits.transientVbSize is 6291456
caps->limits.transientIbSize is 2097152
stats->transientVbUsed is 1088800
stats->transientIbUsed is 24

So it seems the limits are not being hit even when the bug occurs.
I also tried bumping both transientVbSize and transientIbSize by 10x, but the bug still happens.

from bgfx.

hartcw avatar hartcw commented on May 24, 2024

Couple more data points on this bug;

  • I tried overallocating all resources by 10x, to check its not a buffer overflow type bug (ie add "size*10" to the realloc calls in nanovg.cpp and nanovg_bgfx.cpp), but the bug still occurs
  • I synced the original nanovg repo and build the native example, but did not repro there.

So I think the bug might be somewhere in nanovg_bgfx.cpp

from bgfx.

bkaradzic avatar bkaradzic commented on May 24, 2024

So I think the bug might be somewhere in nanovg_bgfx.cpp

Scope of NanoVG in bgfx is that example. If there is bug, you can submit fix, but example as is sufficient to demonstrate that bgfx could be used for 2D rendering.

from bgfx.

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.