Comments (6)
Exit code 137 is out of memory error, not sure why/where it happens.
I don't have a Mac, so it's tricky to test, I should try with a vm.
from raylib-lua.
👋🏼 @GarrettAlbright
Have you find out a way to work with it?
from raylib-lua.
I'm afraid I haven't. I haven't had another look at this since I posted this issue.
from raylib-lua.
I've submitted a pull request for the issue, but one thing I am noticing is performance is not great. Here is a benchmark I've run 100,000 bunnies, 144 FPS max.
M1 Mac Mini - 16GB RAM - macOS Ventura 13.4.1
Language | Extension | FPS | Memory | CPU | GPU |
---|---|---|---|---|---|
C (CMake Release) | Native | 85 FPS | 47 MB | 64% | 90% |
Zig 0.11.0 (ReleaseFast) (Arena) | raylib.zig | 85 FPS | 54 MB | 60% | 90% |
Rust (Release) | bitten2up/raylib-rs | 85 FPS | 48 MB | 67% | 90% |
Go 2.20 (Release) | gen2brain/raylib-go | 85 FPS | 55 MB | 73% | 90% |
Nim 2.0 (Release) | planetis-m/naylib | 83 FPS | 48 MB | 70% | 90% |
C# 11 .Net 7 | raylib-cs | 85 FPS | 68 MB | 75% | 90% |
NodeJS 20 | node-raylib | 44 FPS | 134 MB | 100% | 80% |
PHP 8.2 (Jit) | raylib-php | 41 FPS | 257 MB | 100% | 60% |
PHP 8.2 | raylib-php | 27 FPS | 242 MB | 100% | 57% |
Python 3.11 | raylib-python-cffi | 10 FPS | 100 MB | 100% | 35% |
Lua (LuaJIT 2.1.0-beta3) (-O2) | TSnake41/raylib-lua | 5 FPS | 113 MB | 100% | 31% |
I am not sure why LuaJIT is having these performance issues as I ran raylib_e with a zipfile to make a binary. The branch checkout is from 6 months ago so its a recent code base for LuaJIT. Even ran with MACOSX_DEPLOYMENT_TARGET=13.4 make
to try anything for additional performance. Also used -arch arm64 -O3 -flto
but nothing really improved performance.
from raylib-lua.
I think this issue is due to LuaJIT on Mac OS not using JIT for some reason.
What gives jit.status()
(may require jit = require "jit"
) on Mac OS X with M1/M2 ?
from raylib-lua.
jit = require "jit"
print("jit status", jit.status())
./raylua_s examples/textures_bunnymark.lua
RAYLUA: Raylua boot script
RAYLUA: Lua Version: Lua 5.1
RAYLUA: Lua JIT: LuaJIT 2.1.0-beta3
RAYLUA: Loading FFI binding entries.
RAYLUA: Loaded 846 FFI entries.
jit status true fold cse dce fwd dse narrow loop abc sink fuse
from raylib-lua.
Related Issues (14)
- How is Texture2D handled HOT 2
- missing declaration for symbol 'CreateLight' HOT 2
- My collision system no longer works HOT 1
- Part of the `README.md` lists "3.5" as a version, but elsewhere the library is claimed to be "4.5". Which is correct? HOT 1
- Explain the purpose of `raylua_r` in `README.md` HOT 4
- error while using local raylib = require("raylib") HOT 1
- Error trying to initialize a window HOT 2
- How does this system work
- Building on Windows HOT 3
- Audio doesnt work in embedded mode
- `varargs` and the `arg` hidden parameter don't work correctly HOT 1
- Request, or instructions, to create a custom version of raylua HOT 2
- Unable to use DrawTextEx 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-lua.