GithubHelp home page GithubHelp logo

Comments (6)

TSnake41 avatar TSnake41 commented on June 3, 2024

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.

atahrijouti avatar atahrijouti commented on June 3, 2024

👋🏼 @GarrettAlbright
Have you find out a way to work with it?

from raylib-lua.

GarrettAlbright avatar GarrettAlbright commented on June 3, 2024

I'm afraid I haven't. I haven't had another look at this since I posted this issue.

from raylib-lua.

joseph-montanez avatar joseph-montanez commented on June 3, 2024

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.

TSnake41 avatar TSnake41 commented on June 3, 2024

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.

joseph-montanez avatar joseph-montanez commented on June 3, 2024

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)

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.