Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve headless performance #27

Merged
merged 18 commits into from
Feb 28, 2024
Merged

improve headless performance #27

merged 18 commits into from
Feb 28, 2024

Conversation

garymm
Copy link
Member

@garymm garymm commented Feb 21, 2024

Fixes: #19
Fixes: #22
Fixes: #23
Fixes: #25

We need to disable security because a game we are developing currently
uses insecure lua features.

I don't think the software rendering env variable was doing anything,
but if it was, I think it was counter-productive.
@garymm garymm force-pushed the garymm/conda branch 2 times, most recently from 459a2f8 to e2147b8 Compare February 27, 2024 21:29
@garymm garymm changed the title add python example, and cleanup improve headless performance Feb 27, 2024
@garymm garymm force-pushed the garymm/conda branch 2 times, most recently from 3428f97 to b3805e4 Compare February 27, 2024 22:43
do not use std::from_chars TODO squash
The motivation was to avoid some copies of the CapnProto messages. I
think this is possible using ZeroMQ, but it seems much easier with
CapnProto RPC. It also reduces third party deps (no ZeroMQ).
potentially faster than TCP on localhost
this seems to result in a significant performance boost
(39 -> 57 FPS on devtest game on awake-oyster, which has Quadro M4000).
It's way faster than the --headless we put into Irrlicht.
On a machine with:
* Quadro M4000 GPU
* E5-2630 v4 CPU

FPS goes from ~20 to ~59 on devtest game.

sleep after starting XVFB TODO squash"
it is not needed

We can run headless on linux using XVFB
This means we don't need to use SDL2

fix test for linux mesa TODO squash
@garymm garymm force-pushed the garymm/conda branch 3 times, most recently from b90664d to 408582e Compare February 28, 2024 21:12
We're using newer C++ features not supported by them.

Also enable gettext on all builds.
Not sure why but without it we get ncurses errors.
@garymm garymm merged commit 6731ea4 into master Feb 28, 2024
15 checks passed
@garymm garymm deleted the garymm/conda branch February 28, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant