Bunch of gamedev bugs which are annoying + very awaited functions

Just starting out? Need help? Post your questions and find answers here.
AZJIO
Addict
Addict
Posts: 2187
Joined: Sun May 14, 2017 1:48 am

Re: Bunch of gamedev bugs which are annoying + very awaited functions

Post by AZJIO »

FlameofChange wrote: Sat Jun 08, 2024 6:08 pm Why the sprites are loaded in bitmap ? Is there a way to make it much more compact ?
As far as I know, all compression formats are designed for compact storage on a hard drive. A raster image is always required to display an image on the screen.
r-i-v-e-r
User
User
Posts: 20
Joined: Thu May 09, 2024 5:18 pm

Re: Bunch of gamedev bugs which are annoying + very awaited functions

Post by r-i-v-e-r »

AZJIO wrote: Sat Jun 08, 2024 6:28 pm
FlameofChange wrote: Sat Jun 08, 2024 6:08 pm Why the sprites are loaded in bitmap ? Is there a way to make it much more compact ?
As far as I know, all compression formats are designed for compact storage on a hard drive. A raster image is always required to display an image on the screen.
Most GPUs nowadays do support several types of texture compression, so you can accomplish more with less bandwidth and overall VRAM utilisation.

Note that these texture compression schemes are unlike JPEG/PNG/etc., in that they're optimised for fast random access rather than the typical assumption that the image is to be decompressed and rendered as a whole.

The OpenGL wiki details S3TC usage here (though there exist other standards): https://www.khronos.org/opengl/wiki/S3_ ... ompression

Things like this (and streaming virtual texturing, etc.) have been pretty handy since there's a constant urge for finer approximations of realism in gaming, and being able to fit ~4x the texture detail in a scene is a pretty huge gain, but I digress...

OP seems to have been bonked for likely spam. In case they really were running into VRAM issues, I'd suggest looking into potential wasteful allocation of texture resources above all (whether that be loading too eagerly, wasted empty space, etc.). Aside from that, I'd suggest storing textures as DDS files w/ DXT/S3TC compression. Even though the LoadTexture(...) docs only mention support for PNG/TGA/JPG, Ogre tolerates compressed DDS just fine*.

*disclaimer: this is undocumented behaviour, but seems consistently reliable. If you're already pinned to an older PB version, and it works for you there, I'd say go for it. TODO: maybe request doc clarification here.
FlameofChange
New User
New User
Posts: 7
Joined: Sun Jun 09, 2024 8:03 am

Re: Bunch of gamedev bugs which are annoying + very awaited functions

Post by FlameofChange »

Oh, that's the second time I got bonked. I don't know why. Is this automatic or manual ?
Maybe the use of steam links roflmao.
Anyway. I'm gonna contact the admins to fix that and get the topic back ([EDIT] there doesn't seem to have any form of contact staff button, I'm gonna find another way).
Thanks for the clarifications, I'll dig into it today and see if it corresponds to my needs.
User avatar
Caronte3D
Addict
Addict
Posts: 1361
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Bunch of gamedev bugs which are annoying + very awaited functions

Post by Caronte3D »

When I entered this thread, the initial message seemed SPAM to me at first glance, but I started reading it and it made a lot of sense and it should be back, so that the bugs can be corrected.
Fred
Administrator
Administrator
Posts: 18204
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Bunch of gamedev bugs which are annoying + very awaited functions

Post by Fred »

It's not automatic but when we see external links.for a new user, chance are high than it's a spam post so it often gets deleted. We can't brings back deleted posts though.
FlameofChange
New User
New User
Posts: 7
Joined: Sun Jun 09, 2024 8:03 am

Re: Bunch of gamedev bugs which are annoying + very awaited functions

Post by FlameofChange »

Good to know then.
Well, time to rewrite most of it, and get my own backups in case of that kind of issues eheheh.
I'll edit this very reply when I'm done !
Post Reply