Game Development Community

TCPObject: any known issues with buffering large files?

by Stefan Lundmark · in Torque Game Engine · 07/28/2005 (8:57 am) · 3 replies

I've been coding a patcher in script for a long time now and it almost works as I want it to.
There is however problems when attempting to download files larger than 8.4 megabytes, for some reason.

I've tried to download them from different webservers, with different HTTP protocols. What happends is that when the buffer reaches arouund 8400kb is that the engine freezes, more or less.. mouse input stops and well, I have to break out of the application.

Are there any known problems with this since before? If so, then I'll probably have to put this patcher down and use outside tools.

#1
07/28/2005 (9:15 am)
I guess what I should do is to implement some sort of streaming of data to the disk rather than buffering everything in memory.
#2
07/28/2005 (10:52 am)
Streaming it is probably wisest. Most diff/delta algorithms can work within a bounded memory footprint.
#3
07/28/2005 (11:34 am)
Not sure where to start but I'll get a go at it. Thanks. :)