- Home /
WWW Database (SQL?) Speed.
Hello, How would Unity be fast to send, let's say, 30 floats to a Website in one Update() call? As for a server idea for my simple game, I want my website ( which has only basic SQL and Html implementation) to receive one float per player every Update, and send it to other players, and it shouldn't be laggy. Is it possible?
-Regards, Alex
Answer by Mike 3 · Jun 07, 2010 at 10:10 AM
I wouldn't send one packet per update regardless of using WWW or not
It may be possible to send 3 or 4 packets per second with WWW, above that i wouldn't risk it though, you have pretty high overheads as you're creating the network streams each time
As I'm using a precise value in my application, I should then use prediction?
The way I do it (albeit with .NET sockets) is to send 4 packets a second and then interpolate towards them ins$$anonymous$$d of predicting. This has the benefit of looking better, at the cost of being slightly behind the action
One last question, is my website ( which has only basic SQL and Html implementation) capable handling packets? ( I don't have access to SSH and i'm a bit nab with all network stuffs)
Your answer
![](https://koobas.hobune.stream/wayback/20220613054836im_/https://answers.unity.com/themes/thub/images/avi.jpg)