Comments (5)
Check raylib/src/config.h
, comment SUPPORT_BUSY_WAIT_LOOP
and SUPPORT_HALF_BUSY_WAIT_LOOP
from raylib-zig.
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.
from raylib-zig.
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.
Closing this as the binding no longer depends on a pre-installed raylib version.
from raylib-zig.
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)
- SetConfigFlags doesn't accept enum HOT 4
- `DrawTextEx` odd text size behaviour HOT 2
- Expose access to Raylibs compile-time config flags HOT 1
- Doesnt compile HOT 1
- Offer to help: raygui support HOT 7
- Support for Zig 0.11.x HOT 1
- No Autocomplete For Zig LSP HOT 3
- flags incorrectly converted in the python generator HOT 1
- Error in build.zig HOT 1
- loadFontFromMemory fontChars missing support for NULL
- Apps crash when functions that return arrays, return null pointers HOT 1
- Functions accepting slices sometimes redundantly also take their length
- Implement system-raylib flag HOT 2
- Tips on using with zigmod? HOT 1
- No implementation for adding Vectors ?? HOT 2
- Use OS specific path separators in `build.zig`, and remove comptime parameters in `getModule`. HOT 2
- Color pink is defined wrong
- how do I include other libs (web build) HOT 4
- Getting an error when following readme instruction
- Latest zig development version introduced breaking changes for build.zig HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raylib-zig.