vi3itor / GameplayFootball

Football game
Apache License 2.0
98 stars 25 forks source link

More options for lower end gfx #11

Open sc0ttj opened 2 years ago

sc0ttj commented 2 years ago

It would be nice to have additional graphics settings in the in-game menus, or at compile time.

I've compiled GameplayFootball on a Focal Fossa based distro (Puppy Linux "FossaPup")... compiled on an Lenovo Thinkpad x220i, which, like many laptops, only has integrated graphics card, (in this case OpenGL 3.0, apparently).

I can still run the game however, using the following command:

MESA_GL_VERSION_OVERRIDE=3.3 ./gameplayfootball

Performance is not great, so I tried hacking at the source code to add a few changes:

It was all very hacky, and I've no idea what I'm doing, but I did get better slightly performance - although not much difference, obviously.

It would be nice to have good performance on lower end machines... There is https://github.com/bkaradzic/bgfx, which supports all kinds of backends, and might make it easier to port to Android etc, but it may not be worth the effort to integrate it into this project (not at all trivial, I'm sure).

Maybe easier - it would be nice to able to disable various gfx features at build time:

(having worked with some people at BBC Sport a few times, I think they (for example) would be more interested in this for AI and motion capture type stuff, rather than "games").

Anyway, just a suggestion, close this issue if it's of no interest to you.

Thanks.

DoomDivine commented 6 months ago

It would be nice to have additional graphics settings in the in-game menus, or at compile time.

I've compiled GameplayFootball on a Focal Fossa based distro (Puppy Linux "FossaPup")... compiled on an Lenovo Thinkpad x220i, which, like many laptops, only has integrated graphics card, (in this case OpenGL 3.0, apparently).

I can still run the game however, using the following command:

MESA_GL_VERSION_OVERRIDE=3.3 ./gameplayfootball

Performance is not great, so I tried hacking at the source code to add a few changes:

* added 640x480 (fullscreen) to the in-game menu

* commented out some specular rendering stuff

* used the precalculated kernel32 stuff

* tried to comment out shadow rendering stuff

It was all very hacky, and I've no idea what I'm doing, but I did get better slightly performance - although not much difference, obviously.

It would be nice to have good performance on lower end machines... There is https://github.com/bkaradzic/bgfx, which supports all kinds of backends, and might make it easier to port to Android etc, but it may not be worth the effort to integrate it into this project (not at all trivial, I'm sure).

Maybe easier - it would be nice to able to disable various gfx features at build time:

* it lowers the (hardware) barriers for development, and for running it obvs

* it widens its use cases (physics sim, AI testing, diagramming, rendering to video, etc)

* more flexibilty and (properly documented) build-time options are usually a good thing

* it may therefore encourage more people to get involved in development

(having worked with some people at BBC Sport a few times, I think they (for example) would be more interested in this for AI and motion capture type stuff, rather than "games").

Anyway, just a suggestion, close this issue if it's of no interest to you.

Thanks.

Hey there, i had a doubt regarding this game:

So, if i want to create a player, for example a football player with an overall rating of 999 or 1 million ovr, such that he scores from goal to goal and cannot be tackled and is incredibly fast, how would i do that in the game's sources code? How to change the player overall in the game's source code? Please tell me how do i do this, because this has always been my dream modification in a football game, sadly fifa does not allow me to make 1 million ovr players, but i hope this game allows me? Please help me out?