Giter Site home page Giter Site logo

Multiplayer loading freez about craft HOT 12 CLOSED

fogleman avatar fogleman commented on April 30, 2024
Multiplayer loading freez

from craft.

Comments (12)

haetsinc avatar haetsinc commented on April 30, 2024

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.

from craft.

fogleman avatar fogleman commented on April 30, 2024
#define USE_CACHE 1

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

from craft.

sprocklem avatar sprocklem commented on April 30, 2024

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

from craft.

nsvir avatar nsvir commented on April 30, 2024

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

from craft.

matthewhegarty avatar matthewhegarty commented on April 30, 2024

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

from craft.

MrSilent avatar MrSilent commented on April 30, 2024

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!

from craft.

fogleman avatar fogleman commented on April 30, 2024

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.

from craft.

MrSilent avatar MrSilent commented on April 30, 2024

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.

from craft.

matthewhegarty avatar matthewhegarty commented on April 30, 2024

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.

from craft.

fogleman avatar fogleman commented on April 30, 2024

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

from craft.

MrSilent avatar MrSilent commented on April 30, 2024

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

from craft.

matthewhegarty avatar matthewhegarty commented on April 30, 2024

great - much better - seems fine now

from craft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.