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

[no squash] Bypass media transfer in single player #14288

Merged
merged 4 commits into from Feb 4, 2024

Conversation

sfan5
Copy link
Member

@sfan5 sfan5 commented Jan 20, 2024

aside from generally being faster, this fully "fixes" #9107 by just never doing media transfers in singleplayer.
(underlying issue is of course not solved)

To do

This PR is Ready for Review.

How to test

Remove client/media and start singleplayer.

@sfan5 sfan5 force-pushed the bypassmedia branch 3 times, most recently from 8ee3c49 to 0570bd5 Compare January 20, 2024 17:38
@sfan5 sfan5 added the Action / change needed Code still needs changes (PR) / more information requested (Issues) label Jan 20, 2024
@sfan5 sfan5 removed the Action / change needed Code still needs changes (PR) / more information requested (Issues) label Jan 20, 2024
The recently added ioctl use is reported as a false-positive by valgrind.
I tried moving it to different compilers/versions two times and only
hit further issues that were valgrind's fault.

Also includes a tiny fix.
Copy link
Member

@grorp grorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The speedup is dramatic.

@sfan5 sfan5 merged commit c9e10e1 into minetest:master Feb 4, 2024
15 checks passed
@sfan5 sfan5 deleted the bypassmedia branch February 4, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants