Saving Player Files

For people working on the C++ code.
Post Reply
User avatar
BrandonReese
Member
Posts: 839
Joined: Wed Sep 12, 2012 00:44
GitHub: bremaweb
IRC: BrandonReese
In-game: BrandonReese
Location: USA

Saving Player Files

by BrandonReese » Post

It seems every player file is re-written when the player data is saved. All of my player files have the same modified date/time. There are currently 11,927 player files on my server, I have to think that writing all of these player files has a negative impact on performance. Can it be changed so only online players files are updated, or is there a reason all player files have to be re-written?

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

I agree this happened to be what made 0gb.us's server way too laggy.
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

This should be actually be fixed, but it seems that it isnt working correctly.
More precisely: the inventory is always seen as modified, because either the = or == operator on Inventory or InventoryList is buggy.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests