Git Product home page Git Product logo

Comments (10)

wojtekschiller3 avatar wojtekschiller3 commented on August 11, 2024

EDIT:

It turned out that the game only started when I chose the integrated graphics card. I am still waiting for such a bug to be fixed. Greetings!

from skijump3-sdl.

veikkos avatar veikkos commented on August 11, 2024

Hey, thanks for reporting the issue!

Could you try to reproduce it with attached debug version? Extract it into fresh SJ3 directory and run from command line. It should print more information than the release version. Thanks!

SJ3-debug.zip

from skijump3-sdl.

wojtekschiller3 avatar wojtekschiller3 commented on August 11, 2024

https://i.imgur.com/orQqy0T.png

Hello.
After activating SJ3-debug.exe, more information came out of the command line. I hope this will help solve the problem.

Cheers!

from skijump3-sdl.

veikkos avatar veikkos commented on August 11, 2024

Thanks! It's indeed helpful and shows that the problem happens within renderer creation.

  renderer := SDL_CreateRenderer(window, -1, 0); 

I checked the parameters we use in Window and Renderer creation and those should be valid. I couldn't find search engine hits for this kind of exception related to that API.

Because you are the only one out of hundreds of users who have reported this and with dedicated GPU only, I'm inclined to say that the issue is either in SDL library, operating system or most likely in GPU drivers.

Which dedicated GPU you have? Is it in laptop? Can you try to update your GPU drivers?

from skijump3-sdl.

veikkos avatar veikkos commented on August 11, 2024

One thing we could try. This version enforces software rendering instead of defaulting to hardware acceleration. Could you try if this one works with your problematic GPU? Thanks!

SJ3-sw-renderer.zip

from skijump3-sdl.

wojtekschiller3 avatar wojtekschiller3 commented on August 11, 2024

My dedicated graphics card is the NVIDIA GeForce GTX 1650, and yes, I have a laptop. As for the graphics drivers, I have everything updated.

However, after running SJ3-sw-renderer.exe file on NVIDIA card, the game started normally, without any errors.

Thank you very much!

from skijump3-sdl.

veikkos avatar veikkos commented on August 11, 2024

Thanks for testing. What the test actually means is that the problem is indeed only with that particular nVIDIA setup/drivers. The change forced software rendering which means that all the work is done by the CPU. This test was unfortunately only a workaround and cannot be mainlined since it removes any GPU hardware acceleration from everyone.

It all means that there does not seem to be a way to fix the issue in code. Have you played other SDL2 games like what we have ported or maybe C-Dogs? It would be interesting to know if some or all of them work.

from skijump3-sdl.

wojtekschiller3 avatar wojtekschiller3 commented on August 11, 2024

I have not yet played the other games, I would have to look at them in the near future and see if there is a similar error. So, as I understand it, my only option is to play the integrated graphics card. Well, there is always a solution :D Thanks a lot for your help! :)

from skijump3-sdl.

veikkos avatar veikkos commented on August 11, 2024

I'm adding a command line parameter to prioritize SW rendering. It's at least a valid workaround.

I was looking online and there were some Pascal/SDL issues with similarities. But nothing really promising. I tried to repro on one nVidia laptop but that was ok.

from skijump3-sdl.

veikkos avatar veikkos commented on August 11, 2024

SJ313-SP4 released with support for enforced SW rendering via command line parameters.

Thanks again for reporting and have a nice flight to Christmas! Stay safe.

from skijump3-sdl.

Related Issues (12)

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.