Comments (15)
It can't compile GLES shader, hmm. I remember same on R-Pi, but this works on Android.
If OpenGL1 works correctly, use it, GL1 is best here.
from nfsiise.
Thank you for that information, good to know that OpenGL 1 is the preferred renderer.
from nfsiise.
🤦 It's my bug 🤣
from nfsiise.
Brilliant thank you, I'll give it a test!
from nfsiise.
@zaps166 was able to compile at commit 06c357106827eee5f9845a749aa3d4869cb34cc9 in a docker container, and the gles2 renderer is now working on the Panfrost devices. Thank you for the fix!
from nfsiise.
After some changes, GL(ES)2 is now default renderer.
from nfsiise.
I get quite a few warnings similar to the following:
Because I don't use cast, in C it can compile 😄 However I don't have these warnings. Maybe different compiler version? I see Clang 10, I use newer Clang.
How are you compiling for R-Pi 4?
32-bit Arch Linux, ./compile_nfs cpp
. It runs normally there.
Bus error
I copy floating-point data to aligned stack and use VFP there, so it shouldn't happen.
Could you try ./compile_nfs cpp debug
?
from nfsiise.
I have tried different values in the MESA_GLES_VERSION_OVERRIDE
and MESA_GLSL_VERSION_OVERRIDE
environment variables as workarounds but with no luck. Is there a particular version number of GLSL I should try?
from nfsiise.
Fixed, however if OpenGL 1 is working there - use it.
from nfsiise.
Also I generally improved OpenGL performance, maybe it'll run faster now!
from nfsiise.
I see you have been busy!
Earlier in the week I was attempting to re-compile for arm32v7 / armhf at commit 7d144a070547260a27a71d5cb6a5dd7af38188f3. Compilation was fine, but at runtime on my devices all 3 renderers would crash with error:
Application closed with a signal: 7 /storage/roms/ports Need For Speed II SE.sh: line 46: 14104 Bus error $GAMEDIR/nfs2se
Will try my luck again at HEAD :-)
from nfsiise.
Bus error is caused by alignment error, probably floating point numbers. I hope it'll work on current master 🙂 It's working on R-Pi 4 and Android 😄
from nfsiise.
No luck unfortunately. When running ./compile_nfs cpp
at commit 52c9f50faa7addfa46c1db77ad7e4213184f2974 I get quite a few warnings similar to the following:
Compiling C code... DInput.c:586:27: warning: incompatible pointer types assigning to 'uint32_t (*)(struct DirectInputEffect **, const DIEFFECT *, uint32_t)' (aka 'unsigned int (*)(struct DirectInputEffect **, const DIEFFECT *, unsigned int)') from 'void (void *)' [-Wincompatible-pointer-types]
dinputEff->SetParameters = WRAP_NAME(SetParameters);
Then same runtime errors as in #112 (comment)
This is in an Ubuntu Focal Docker Container (arm32v7 / armhf):
john@john-desktop:~/workspace/sdl2$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
139df2187727 arm32v7/ubuntu:focal "/bin/bash" 3 days ago Up 31 minutes flamboyant_sinoussi
Dependency versions: SDL2 2.26.2, clang 1:10.0-50 and lld 1:10.0-50
Maybe I'm doing something wrong, although it is fine at commits prior to the switch to lld
. How are you compiling for R-Pi 4?
from nfsiise.
Let me know if I would need to move this another issue but just adding here as I also test with porschemad911's binaries - but on another device using the same OS.
In my case I'm getting the bus error in run time, after 30-40 secs while in a race. Would that still be related Clang version used for compilation?
'/storage/.nfs2se' -> '/roms/ports/nfs2se/conf/.nfs2se'
Need For Speed II SE
Wrapper v1.3.0
Game v1.1.2-cpp_r5
OpenGL ES 2
Application closed with a signal: 7
/storage/roms/ports/Need For Speed II SE.sh: line 59: 3391 Bus error $GAMEDIR/nfs2se
Failed to restart oga_events.service: Unit oga_events.service not found.
from nfsiise.
You use old version, check current master branch.
from nfsiise.
Related Issues (20)
- execvp: No such file or directory. HOT 6
- If i try to start nfs2se.exe Error message: MOVIE FILE NOT FOUND HOT 4
- game not running HOT 1
- Possiblity to turn off texture filtering
- Add support for cockpits HOT 2
- Lag issue while playing HOT 3
- Question about the stf files in .nfs2se/stats/ HOT 2
- Original game bug: Gamepads with more than 15 buttons can't bind buttons HOT 18
- Implementing online sync HOT 4
- Wrong special chars in other langs HOT 1
- Error while launching HOT 15
- Widescreen support? HOT 2
- NFSIISE on a Mac HOT 4
- [Linux Mint DE 6] Works like butter but no audio HOT 3
- Help compiling APK HOT 40
- Bus error with release version HOT 27
- 3D Glasses Fix: Question about adding Direct3D support (3rash/Thrash API) HOT 15
- Feature request: Use DPAD (HAT/POV) HOT 5
- Compilation error due to SDL2 not updated HOT 2
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 nfsiise.