Giter Site home page Giter Site logo

Comments (5)

raysan5 avatar raysan5 commented on May 14, 2024 1

Check raylib/src/config.h, comment SUPPORT_BUSY_WAIT_LOOP and SUPPORT_HALF_BUSY_WAIT_LOOP

from raylib-zig.

Not-Nik avatar Not-Nik commented on May 14, 2024

Not quite sure where this comes from. I tried running the basic window example with both the plain C source and in Zig and they have about the same CPU usage. Also when you look at the binding all it really does is define extern functions, structs and enums so nothing that could really impact CPU usage.
Screen Shot 2020-05-03 at 22 37 05

from raylib-zig.

lluz55 avatar lluz55 commented on May 14, 2024

Also when you look at the binding all it really does is define extern functions, structs and enums so nothing that could really impact CPU usage.

I know. I just wanted to have some idea of ​​what could be doing this. I tested with Nim bindings and it shares similar result as in Go

from raylib-zig.

Not-Nik avatar Not-Nik commented on May 14, 2024

Closing this as the binding no longer depends on a pre-installed raylib version.

from raylib-zig.

rcorre avatar rcorre commented on May 14, 2024

FWIW, I encountered this on Linux raylib 3.7 zig 0.8. Commenting out SUPPORT_HALF_BUSY_WAIT_LOOP dropped the CPU to near-0.

from raylib-zig.

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.