Code Monkey home page Code Monkey logo

Comments (15)

zaps166 avatar zaps166 commented on July 18, 2024 1

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.

porschemad911 avatar porschemad911 commented on July 18, 2024 1

Thank you for that information, good to know that OpenGL 1 is the preferred renderer.

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024 1

🤦 It's my bug 🤣

from nfsiise.

porschemad911 avatar porschemad911 commented on July 18, 2024 1

Brilliant thank you, I'll give it a test!

from nfsiise.

porschemad911 avatar porschemad911 commented on July 18, 2024 1

@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.

zaps166 avatar zaps166 commented on July 18, 2024 1

After some changes, GL(ES)2 is now default renderer.

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024 1

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.

porschemad911 avatar porschemad911 commented on July 18, 2024

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.

zaps166 avatar zaps166 commented on July 18, 2024

Fixed, however if OpenGL 1 is working there - use it.

from nfsiise.

zaps166 avatar zaps166 commented on July 18, 2024

Also I generally improved OpenGL performance, maybe it'll run faster now!

from nfsiise.

porschemad911 avatar porschemad911 commented on July 18, 2024

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.

zaps166 avatar zaps166 commented on July 18, 2024

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.

porschemad911 avatar porschemad911 commented on July 18, 2024

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.

edemirkan avatar edemirkan commented on July 18, 2024

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.

zaps166 avatar zaps166 commented on July 18, 2024

You use old version, check current master branch.

from nfsiise.

Related Issues (20)

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.