Skip to main content

Questions tagged [compression]

The name given to the process of encoding data such that it uses lesser number of bits as compared to the original representation.

Filter by
Sorted by
Tagged with
1 vote
1 answer
42 views

When performing bulk operations on DDS images, is there a safe intermediary format I can use for operations with ImageMagick?

I would like to perform bulk operations of a large number of .DDS files (over 100,000) which may appear in any variety of different BCn formats. I would normally use the ImageMagick command line tools ...
Zhro's user avatar
  • 155
1 vote
0 answers
42 views

Is there a better format than PNG to store R16uint depth data on Android?

Is there a better format than PNG to store R16uint depth data on Android I find I get precision artifacts when using ASTC.
gpu's user avatar
  • 21
0 votes
1 answer
77 views

How do games package their textures in relation to image compression?

I know that you have to keep in mind what platform you're targeting, but it feels like you might have to have multiple sets of textures. Like let's say you're targeting desktop. How do I know what ...
Zebrafish's user avatar
  • 189
10 votes
2 answers
4k views

Wondering if there is a more efficient way to store level data in my game?

I am trying to remake Super Mario Bros. in JavaScript and I am trying to figure out if there is a more efficient way to create and store the level data. I have created 1-1 and here's what the code ...
Jake Miahn's user avatar
0 votes
1 answer
69 views

BasisParser returns undefined from loading KTX2 file with custom extension

I get 'undefined' from the BasisParser that I use from Pixi itself, when loading a KTX2 file with a custom extension (through Assets.load): ...
Kristof Van Der Haeghen's user avatar
0 votes
1 answer
4k views

How to fix the warning "Only textures with width / height being multiple of 4 can be compressed to ETC2 format"?

This question is about Unity texture compression. I have an image that has the dimensions as follows: width = 724, and height = 1044. The original size is 348 Kbytes. This means that both the width ...
Job_September_2020's user avatar
0 votes
1 answer
189 views

Problems with normal recovery from storage as two floats and normal from depth buffer

In my app I’m producing for my deferred shading 4 layers of data to show up occluded parts of the scene during screen space reflection (SSR) pass. I need normal maps with bumpiness of these layers for ...
philB's user avatar
  • 159
0 votes
1 answer
91 views

Method of compressing tile data [closed]

I'm making a game in which a row of tiles may look something like this, in which each block is represented with a unicode char: “gggggggggggggggggggggggggggggggggggtttttttttjjjjjjjjjjjjjjj” So my ...
Coder2195's user avatar
  • 123
1 vote
1 answer
309 views

Retro-game development - how did 8-bit computers store large level maps and build a screen from them?

Not sure whether this would be better in the retro-computing exchange, but I'm trying in game development first. During the 80s I played a lot of what would now be called "arcade adventures" on the ...
amkingTRP's user avatar
  • 198
1 vote
2 answers
791 views

Should I compress WebSocket payload data in a game where latency matters?

I have started work on a new game project where users are in an open environment and fight each other in a fast-paced shoot-out. I know that compressing all of the WebSocket's payload data using zlib ...
Jacob Gunther's user avatar
1 vote
4 answers
2k views

How to improve load times of audio files without loosing too much quality for HTML5 game?

I'm creating an HTML5 game. We have high fidelity composed music, in the format of wavs and mp3s— some ...
user3871's user avatar
  • 1,055
0 votes
1 answer
1k views

Serialization/Deserialization Solutions for Loading & Playing Audio Files

I'm creating a music game in unity, and the first issue I encountered was that I had no way to load music into the game from a file. I tried using a WWW to load the mp3 files, but in my research I ...
Tanner Fix-It Smith's user avatar
2 votes
1 answer
566 views

Game compression?

I want to know the right and good way to compress my game when I build it. I made 3 levels with all my enemies there. The size of the game file 3GB in the desktop. When I build my game I get 1GB. All ...
user43474's user avatar
  • 537
3 votes
0 answers
645 views

Should I use ASTC

So I read about ASTC and that it should be preferred over S3TC. Where I'm concerned is the current status of hardware support. According to Wikipedia every major GPU manufacturer supports ASTC but ...
SargasDev's user avatar
0 votes
1 answer
1k views

Should I compress the game data files?

I am working on packaging my game resources into a single file. I have chosen the format but I don't know whether I should use compression or not. I understand the possible pros and cons: Compression ...
VP.'s user avatar
  • 393
3 votes
1 answer
11k views

Compressed vs Uncompressed Textures differences?

What is the difference? As far as i know, compressed textures would speed things up, because the PCIe bus has to transfer less amount of data, and the interconnect is the main latency issue with GPU'...
KeyC0de's user avatar
  • 140
28 votes
9 answers
14k views

How does delta compression reduce the amount of data sent over the network?

Many games use the technique of delta compression in order to lower the data load sent. I fail to understand how this technique actually lowers the data load? For example, let's say I want to send a ...
user101051's user avatar
0 votes
0 answers
93 views

Best form of audio compression / packing

Currently in my game I have a large amount of sounds and am getting to the point where I need to find a way to reduce the overall size of the sounds to save space when I deploy. I was wondering if ...
Elliott's user avatar
  • 473
0 votes
1 answer
923 views

Storing large amounts of voxels in file

I'm making a game similar to Dwarf Fortress and I've run into a large problem from the start. How can you store such a large amount of land on disk. With every voxel holding an integer with the 28 MSB ...
Ben Beazley's user avatar
1 vote
0 answers
227 views

Reconstructing 3D Rotation from 8 byte - Assistence required

I am currently trying to load 3D models and animations into a program. The file format has no public description, so I am decoding them piece by piece. (I'm studying computer science and it's for ...
rootmenu's user avatar
  • 131
3 votes
0 answers
93 views

How can I find an animation's final compression size in Unity?

I've been looking at animation compression, and the only way I can seem to find it's final size is to create a Build and check it in the Profiler. There must be an easier way?
john's user avatar
  • 131
0 votes
1 answer
1k views

Minecraft chunk file decompresssion

First of all, hello everyone, I'm currently making a program to read Minecraft region files (r.#.#.mca) for a server. The problem I have is that I can't decompress them, I tried GZip and ZLib ...
Damia's user avatar
  • 21
2 votes
1 answer
515 views

Chunk/Region Compression/Decompression

Reading this article here, the author writes about chunk saving and using a lookup table and then saving each chunk in a region file, each region file having 4096 chunks and each chunk having 4096 ...
Euthyphro's user avatar
  • 237
1 vote
0 answers
125 views

Avoiding audio transcoding in Unity?

I'm working on a project where I only have access to MP3s versions of audio tracks I'd like to use. Unity is trying to be helpful and recompressing everything as Vorbis, which is not ideal due to ...
James McMahon's user avatar
0 votes
1 answer
153 views

SVD vs Normal decomposition for BRDF compression

In the slides over here by NVidia, they describe methods for BRDF compression. They first create a BRDF matrix where each column(or row) corresponds to a single light direction (or outgoing view ...
Muhammad Omer's user avatar
0 votes
1 answer
620 views

How to read a custom binary file made with Adobe air into Unity 3D & C#

I have a custom data file from a project that was authored in actionscript some years ago by another developer. I am porting parts of the project over to Unity 3D. I don't have any documentation for ...
M. Bedi's user avatar
  • 101
7 votes
1 answer
937 views

How can I minimise data sent through a network in a modern FPS?

I am aware of snapshot interpolation with the use of delta compression as being a technique used to minimise the amount of data sent in a modern FPS game like Quake 3, but what other techniques are ...
Curiosity's user avatar
  • 123
1 vote
2 answers
524 views

Efficient way to implement animation from spritesheet?

I'm actually trying to port a GBA game to SDL for educationnal purpose. The game has many sprites and tiles. Since the GBA screen size is 240x160px, I decided to scale it 2x. At first, it went okay ...
Alexandre TryHard Leblanc's user avatar
-1 votes
1 answer
114 views

What is the recommended way to store compressed textures in files?

Uncompressed textures can be stored in lossy formats such as jpeg and it saves a lot of hard drive space. However for obvious reasons you cannot do the same on compressed textures. So what is the ...
hpsMouse's user avatar
  • 107
1 vote
3 answers
1k views

Loading Collada Files Quickly (three.js, OpenGL, Javascript)

Okay, so I've created these sleek-looking spaceship models for an OpenGL game that I'm going to make. To make them look sleek and smooth, I used a Subdivision Surface modifier in Blender. Hmm... ...
Superdoggy's user avatar
3 votes
1 answer
642 views

How can I compress resources into a single file in Java?

Today I've finished my game, but there's a problem. There're more than 500+ images in my resources folder and I want to compress them into a single file, like other games do (for example put ...
user3742637's user avatar
1 vote
2 answers
908 views

How to create old-school format music with small file sizes

My friend and I have been working on a project recently, and because we are hard coding everything (other than the graphics library, Pygame), the total size for our project is super small. I feel like ...
Nick Jarvis's user avatar
1 vote
1 answer
160 views

Compressing language for Game use to save Packets

Given ASCII is 8 bits (1 byte), UNICODE is 32 bits (4 bytes). An idea came to my mind to support multiple language by isolating certain UNICODE Letters to support multiple language for my chat(game) ...
Ace Caserya's user avatar
2 votes
1 answer
846 views

Client-Server Game Communication (w/ Protobuf, Relevancy and Delta Compression)

So, I have reached another problem while trying to implement my client-server communication. From everything I've read there are three main ways to minimize packet size: Only send what has changed to ...
guitar80's user avatar
  • 139
0 votes
1 answer
387 views

Compress 16 bit raw data in webgl

I have a 3D volume where every voxel is 16 bits. Is there anyway I can use some kind of compression to store the data so I can use less video ram? Webgl supported different compressiosn if you enable ...
hidayat's user avatar
  • 309
0 votes
1 answer
947 views

Implementing Client-Server Delta Compression (with Protobufs)

I am writing a 2D real-time RPG in C# and I am trying to implement client-server communication using protocol buffers. I am trying to figure out how to implement delta compression to reduce message ...
guitar80's user avatar
  • 139
1 vote
1 answer
307 views

Does compressing data before transfer make a game run faster?

I want to make my game as fast as possible as it is real time and fast paced. I have already decided to encrypt my data here and I was wondering whether compressing it would be faster for the client ...
user avatar
4 votes
3 answers
2k views

Generate ETC2 compressed texture from Android Bitmap in OpenGL ES 2

My app currently uses a lot of textures most of which probably could be compressed quite a lot by using ETC2 (my app runs on 4.4 so i have a lot of devices supporting GLES30), i cannot use ETC1 since ...
FrankMonza's user avatar
1 vote
1 answer
556 views

texconv produces texture with same size using BC1 or BC4

According to msdn, the BC1 block compression format is for images with 3 color channels and 1 bit alpha channel and the BC4 is for images with 1 color channel and no alpha. Using the same RGBA input ...
Inuart's user avatar
  • 113
0 votes
4 answers
2k views

Why use compression such as zlib? [closed]

Compression and encryption are different things AFAIK, so why even use compression if you have to still decompress anyway, is this just to reduce distribution size or is there some other reason?
user3333072's user avatar
3 votes
2 answers
750 views

(XNA) Possible to hide, compress, or rename .XNB files?

I'm fairly new to XNA (only a week into C# and XNA at this point) but I have been developing games for a while now, and the program I used did not require any/many external files in creating an ...
BlackAfricano's user avatar
13 votes
4 answers
2k views

Avoid double compression of resources

I am using .pngs for my textures and am using a virtual file system in a .zip file for my game project. This means my textures ...
user1095108's user avatar
3 votes
2 answers
14k views

How can I reduce Unity's package size?

I've been experimenting with Unity3D 4.3's 2D features. I've created a simple prototype game to learn how Unity works, how to create sprite animations, collisions and all the basic things. My ...
SiliconMind's user avatar
-5 votes
2 answers
400 views

Why is music compressed with lossy codecs down to low bitrates in modern games?

I wonder why anyone would compress the soundtrack of a game with lossy codecs (mp3 mainly) down to 128 kbps bitrate. Thing is I see it on most of the games. Rarely a game has 320 kbps soundtrack, let ...
user1306322's user avatar
  • 1,401
0 votes
3 answers
6k views

Confused about DXT/DDS compression and color depth

I have done my research on DDS/DXT compression, and the information is kind of "everywhere." It is rather difficult to even find good, organized, sensible information on color depth. However, it is ...
Carter81's user avatar
  • 878
2 votes
2 answers
2k views

How to pack the game files into one without using any file compressor?

Well, one example is this file of the game The Sims 2 for PS2: quickdat.arc. The file contains this .arc extension, but it's no one an archive file and it contains some data of the game inside. How ...
zinx's user avatar
  • 21
0 votes
2 answers
1k views

lz4 archive with encryption [duplicate]

I want to make a game data archive that contains all the game assets, now I could use zlib or lz4 to just make a simple zip archive type thing, but I need a bit more security, does anyone have any ...
user1040769's user avatar
1 vote
1 answer
259 views

Does iOS support BC4 compressed texture?

I've been designing a new OpenGL image algorithm using BC4 textures at its core. It works well accross Windows and Mac, my main targets up to now. But today, the customer added a new requirement : it ...
Cyan's user avatar
  • 325
0 votes
1 answer
1k views

Using compressed(ETC1) textures in LibGDX

I use standard android tool for compressing PNG texture and archiving it with gzip: /android-sdks/tools/etc1tool texture.png --encodeNoHeader gzip texture.pkm ...
eleven's user avatar
  • 399
1 vote
2 answers
5k views

Compress / make Blender .obj file smaller

I have been learning the basics of blender for the best part of the day, and I still cannot figure out how to make models(imported) smaller in file size(where their original file size is 2MB+). The ...
Joey Tawadrous's user avatar