forum

Will osz2 have file optimization?

posted
Total Posts
11
Topic Starter
Dexus
I was wondering if osz2 or if osu! itself was going to get a built in file optimizer like this:
http://nikkhokkho.sourceforge.net/stati ... eOptimizer
It would work great to shrink a lot of files making it easier to have even more maps.
TheVileOne
I would assume this is possible, but you would be trading accessibility efficiency for storage efficiency. It takes processing time to uncompress a file, and that adds up each time it needs to access the data from the .osu. Remember that the mp3 needs to be constantly read, and that means it will needed to be uncompressed in realtime and that may cause delay.
Topic Starter
Dexus
The way that fileoptimizer program works is it strips the files of any unnecessary information from it reducing some sizes by 98%. It isn't a compression program. compression isn't optimization. Fun fact too osz as it is are zip files if you didn't know that.

here is an example of how that program works
http://puu.sh/1vjFE
original size and then optimized size
TheVileOne
In the FAQ for it, it says it compresses the files. It says this process is fast, but "fast" may not be fast enough for a rhythm game. Even a small increase in load time, could create audio desync in osu!. I'm not completely convinced it would be beneficial. Also doesn't this mean that everything would be saved under their format and not .osz2? I don't think you could take any format and be able to use their format technique without having to overwrite your own, and that means you would have to deal with their security vulnerabilities. If .osz2 is supposed to protect the files from being extracted, this could be a way they can easily hack into it.

This will process all supported files added, and overwrite them with the optimized version.
I noticed FLV isn't supported...



Anyways I don't think that the game should automatically be "optimizing" files. There is always the risk of corrupting file data when you start internally moving things around and you just don't know how it will affect certain renderers. I have mp3s that osu can't recognize. If osu just happens to corrupt the mp3, there's not like peppy could afford the server space to keep a backup of filedata in case of corruption.
Topic Starter
Dexus
As I said the fileoptimizer program does not compress the files. It simply removes the meta-data and cleans up the files from unnecessary information. The files are replaced and the old larger files are put in the recycle bin. The source code for the program is open source so peppy could try to implement it into the map compiler.

Here's how osz2 should work

person goes to make osz2 file
files get checked and run through optimization
files then get compressed (a slight bit, not too much; although in this day and age people should have SSD which run through data really fast)
files then get encrypted into one osz2 file to be distributed

File sizes can be cut nearly 50 to 98% because of this.

As per vulnerabilities I am not sure there would be any because it's removing the unnecessary data and then it would be encrypted afterwards.
Topic Starter
Dexus

TheVileOne wrote:

I noticed FLV isn't supported...
There's not much I can do about what it does. I'm just pointing out that it's something peppy could utilize.
Piotrekol

Dexus wrote:

files then get compressed (a slight bit, not too much; although in this day and age people should have SSD which run through data really fast)
Sorry but most people doesn't have (f... expensive) ~200gb SSD for game storage...
Topic Starter
Dexus

Piotrekol wrote:

Sorry but most people doesn't have (f... expensive) ~200gb SSD for game storage...

I was able to buy 2x 120gb ssd for $99 each. They're getting cheaper. Aside from that osu! songs are not that big and don't require much time to process. Running stuff through a common HDD today is around 60 MB/s + and most osu! songs are around there or less than that. [mostly due to unoptimization] Right now I have over 11,000 maps and they all come up to about 25 GB. I'm still repairing most of them because I had to remove all the media files from the songs to save space on my laptop. I even have all the maps shared on a dropbox account that's 200 GB total and it's not even scratching the limit of it.


Getting off topic, just to reiterate: This is just something I'm throwing out there for peppy to see and possibly use to help better the game.
XPJ38

Piotrekol wrote:

Sorry but most people doesn't have (f... expensive) ~200gb SSD for game storage...
HDD 5400 rpm master race
Piotrekol

Dexus wrote:

I was able to buy 2x 120gb ssd for $99 each.
I got my whole PC for... ~$400?(a decent one from new parts)+1.5TB 7200rpm that i got for free. Maybe $99 isn't much for you for something like this- but at least for me it is(and i feel like i'm not the only one there that thinks so too ...). That's all I have to say- I'm out.
Rokk
Yeah, it would suck to have to buy an SSD just to play Osu properly. You just can't expect that with their current prices and Size/Price ratio.
Please sign in to reply.

New reply