Skip to content

More options for lower end gfx #11

@sc0ttj

Description

@sc0ttj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions