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

Multiplayer loading freez #95

Closed
nsvir opened this issue Dec 18, 2013 · 12 comments
Closed

Multiplayer loading freez #95

nsvir opened this issue Dec 18, 2013 · 12 comments

Comments

@nsvir
Copy link

nsvir commented Dec 18, 2013

Hi,

I have a huge freeze when connected to 199.115.118.225 16018.

I think this is caused by the internet connection.

Does anyone have this problem ? Is there something to do to avoid that ?

@haetsinc
Copy link

I'm having this problem as well. The window goes black for a few seconds as soon as I connect, and then the world loads, but I can't move or type.

@fogleman
Copy link
Owner

#define USE_CACHE 1

If you change that to 0 (in config.h) does it fix the issue?

@sprocklem
Copy link

I was having this issue as well and this fixed it for me.

@nsvir
Copy link
Author

nsvir commented Dec 19, 2013

Same issue.
It's better with a faster connection but the macro doesn't fixe it :/

@matthewhegarty
Copy link

craft consistently froze for me after about 20 seconds of playing when connecting to default server. Setting the USE_CACHE to 0 has fixed the issue

@MrSilent
Copy link

Unbelievably smooth on win7 build. Still issues with loading client. Most likely only affecting those of us with low flop rate onboard VGA's. Cache value change helps. Maybe create a subprocess to handle cache. Still trying to wrap my head around the world of C programming. Till then hope my input is of some value. Merry Craftmas!

@fogleman
Copy link
Owner

bb25446

Just added several rendering options here. Try disabling some items for improving performance.

Also, for slow caching during multiplayer, try the "ring" branch (writes to cache on a background thread - data is sent from main thread and stored in a ring buffer before writing) and report back to let me know if it helps.

@MrSilent
Copy link

Thanks. When you mentioned the buffer it made me think to create a ramdisk and put the craft.db in it. Getting about 60 fps now. Just gotta remember to save the db before shutdown.

@fogleman fogleman closed this as completed Jan 2, 2014
@matthewhegarty
Copy link

Still freezes for me - with USE_CACHE enabled or not. When USE_CACHE is zero, server grinds to 0fps. in both cases the entire X session freezes and I have to kill the craft process.

@fogleman
Copy link
Owner

fogleman commented Jan 4, 2014

I've done some profiling and implemented performance improvements. See if it's any better.

@MrSilent
Copy link

MrSilent commented Jan 4, 2014

Yes. Working great with full config. I can start moving right away after the cache is initialized.

@matthewhegarty
Copy link

great - much better - seems fine now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants