Better Questing

Better Questing

39M Downloads

Packet Sending - Performance

Sir-Will opened this issue ยท 8 comments

commented

hey,
can the performance of this be improved?

commented

15-25

commented

Just for notice, how many players are online at the same time ?

commented

1.10, BetterQuesting-2.3.225

commented

another question, is this 1.7.10 or 1.10 ?

commented

Considering that specific method is what syncs the WHOLE quest database with players, I'd expect it to be pretty costly computationally. That said, I'm not calling it every tick, only when quest states changes. Yes VisualVM is going to say its a costly method but in comparison to the processing time as a whole it isn't affecting the overall stability of the game.

EDIT: On average the amount of data sent is num_players * database_size once every 20 ticks

commented

Ha ok. i use 1.7.10 and i didn't see this on my WarmRoast reports. That's the why of the question : V

commented

Now its already at 7,2% with 10 players online and it shows up every time I'm profiling the server.

What do you mean with quest database? The quest progress or the quests in the quest book?

commented

I noticed this problem make the client use more bandwith (about 400-500kB/s), it just like streaming live video, and the server become not responding for me because my internet can't handle more than that.
here is the packet log I took using Sampler mod
packets.txt