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

Async db queries. #8

Open
Namrufus opened this issue May 24, 2013 · 2 comments
Open

Async db queries. #8

Namrufus opened this issue May 24, 2013 · 2 comments

Comments

@Namrufus
Copy link
Owner

Queries should be pushed off to another thread.

May significantly increase the complexity of player interaction and block growth events.

@Namrufus
Copy link
Owner Author

Indexing and BLOBing the plant data is probably more critical to performance than this.

@WildWeazel
Copy link
Collaborator

If we can push all the growth stuff, anything that actually modifies the DB or the state of a block, into a single helper thread that's guaranteed to execute in the order that we queue to it, then it should take care of any synchronization issues like replanting a crop before it's state is updated. There may be a delay before your crops grow when you click on them but that's more acceptable. If that's too much load for a thread to keep up we could break it into a thread per quadrant or region.

mgrandi pushed a commit to mgrandi/RealisticBiomes that referenced this issue Mar 24, 2016
Updated for Acacia and Dark Oak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants