-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance difference compared to ryupold/raylib.zig #122
Comments
iirc ryupolds binding doesnt use latest raylib, so maybe this is caused by a regression within raylib. Could you try using an older version in your source build? |
Should not be the version difference. Here are my other tests.
So I had the following test. The performance does not change with version number. |
Hi, first thanks for your great work. It just makes raylib bindings much easier to use.
Recently I have noticed some performance difference when using ryupold's binding.
Just to be clear, it should not be the problem at your end. Since when I either build raylib from source or use prebuild libs from raylib's official release page, I get the same performance. However, when I use ryupold's raylib.zig, the performance is better.
My small project is simply trying to redo some drawings with opensimplex noise showed in codingtrain's video in zig.
There is the tree of this project:
The content of main.zig is:
Opensimplex2F.c and Opensimplex2F.h are from https://github.com/KdotJPG/OpenSimplex2/tree/master/_old/c
Here is build.zig:
I build and run script in releasefast mode, and the average fps I get is around 40.
Now, when I switch to ryupold's bindings. The average fps I get with same code, same releasefast mode, is about 60 fps.
Here is the project tree for ryupold's binding.
Raylib folder is getting from:
main.zig is basically the same except some API name changes. For example, in your binding, it is
raylib.initWindow()
, but in ryupold's, it would beraylib.InitWindow()
And here is build.zig:
Still I don't see any obvious difference but just very curious why I'm getting nearly 20 fps improvement just by using a different binding.
The text was updated successfully, but these errors were encountered: