Re: what is bgt file sise limmits

2020-04-04 Thread AudioGames . net Forum — Developers room : philip_bennefall via Audiogames-reflector


  


Re: what is bgt file sise limmits

I wanted to chime in with some brief information regarding streams. The BGT audio layer was not originally written by me, it was outsourced in 2008. I found and fixed several terrible race conditions quite a few years later relating to streams, but I am not sure whether all those fixes had been done at the time of the last release. If not, that would account for the random crashes. In addition, the last BGT release is using a very old version of stb_vorbis, a version which has several known issues which will cause crashes on some files. I would like to reiterate my recommendation to move to a solution that is maintained.Kind regards,Philip Bennefall

URL: https://forum.audiogames.net/post/515867/#p515867




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-04 Thread AudioGames . net Forum — Developers room : philip_bennefall via Audiogames-reflector


  


Re: what is bgt file sise limmits

I wanted to chime in with some brief information regarding streams. The BGT audio layer was not originally written by me, it was outsourced in 2008. I found and fixed several terrible race conditions quite a few years later relating to streams, but I am not sure whether all those fixes had been done at the time of the last release. If not, that would account for the random crashes. In addition, the last BGT release is using a very old version of stb_vorbis, a version which has several known issues which will cause crashes on some files. That could be another reason for the crashes. I would like to reiterate my recommendation to move to a solution that is maintained.Kind regards,Philip Bennefall

URL: https://forum.audiogames.net/post/515867/#p515867




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-04 Thread AudioGames . net Forum — Developers room : philip_bennefall via Audiogames-reflector


  


Re: what is bgt file sise limmits

I wanted to chime in with some brief information regarding streams. The BGT audio layer was not originally written by me, it was outsourced in 2008. I found and fixed several terrible race conditions quite a few years later relating to streams, but I am not sure whether all those fixes had been done at the time of the last release. If not, that would account for the random crashes. In addition, the last BGT release is using a very old version of stb_vorbis, a version which has several known issues which will cause crashes on some files. That could be another reason for the crashes. I would like to reiterate my recommendation to move to a solution that is maintained.Kind regads,Philip Bennefall

URL: https://forum.audiogames.net/post/515867/#p515867




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : manamon_player via Audiogames-reflector


  


Re: what is bgt file sise limmits

i'm not sure if it have limits or not, I don't think so

URL: https://forum.audiogames.net/post/515861/#p515861




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : masonian via Audiogames-reflector


  


Re: what is bgt file sise limmits

@12 yeah. I've actually stopped using BGT since last year and only use it to update existing projects. New projects are in other languages.

URL: https://forum.audiogames.net/post/515785/#p515785




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: what is bgt file sise limmits

@11In that case, that is a BGT problem, not a streaming audio problem, and has now made it onto my list of reasons to dislike BGT.Frankly Synthizer doesn't even have HRTF yet and it already has streaming audio working.  can pull a wave file from disk in realtime in a debug build at 0% CPU no problem.  My guess is BGT needed to use threads, didn't do it quite right, and has internal deadlocks.

URL: https://forum.audiogames.net/post/515781/#p515781




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : masonian via Audiogames-reflector


  


Re: what is bgt file sise limmits

@10, streaming audio in BGT I've noticed is very unstable and sometimes the script eventually just crashes with a stopped working dialog.

URL: https://forum.audiogames.net/post/515773/#p515773




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: what is bgt file sise limmits

@8What BGT streams do and what media players do are the same to my knowledge.  The media player is just able to do it without a problem because there's only one sound and nothing else going on in the process.  Plus they're worse than they appear anyway.  Unless you sit there pounding play you won't ever notice that it's 100MS or more of latency, but it usually is.

URL: https://forum.audiogames.net/post/515768/#p515768




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: what is bgt file sise limmits

@5 @6You can stream audio from disk fine, just not for your assets that need to be played with zero latency and repeatedly, without relying on OS swap.  I believe BGT has stream functionality, use that for your music and that's the end of it.The real issue with streaming everything as opposed to keeping everything in memory is that the decoding process is very expensive even for the cheap formats.  You can do it for a few sounds in parallel but beyond that you'll start overtaxing the system resources.  In other words if every gun bullet is a stream, you're going to get a whole lot of crackling and audio artifacts as it fails to keep up. But if you could decode all the time without a problem, the OS page cache would handle it anyway and you wouldn't even need to bother with explicit decoding at all.But unfortunately the CPU is the bottleneck, and the decoding costs more than the read from disk, and so if you want your bullets to play without bringing the computer to its knees, you have to fully decode and convert to the format you're going to be outputting ahead of time which is, as established, large.

URL: https://forum.audiogames.net/post/515763/#p515763




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : masonian via Audiogames-reflector


  


Re: what is bgt file sise limmits

@meatbag, the answer to your last question is that media players generally stream audio into a buffer chunks at a time. This gets around the ram issue by only having a bit of the sound in ram at a time, and some media players have options to set this. BGT, however, is not a media player, so the only option you have is to stream audio, and even then, it won't limit your ram by very much.Also. BGT actually does have a size limit, and this size limit is imposed by the fact that BGT is 32-bit only. This means that it only has the ability to access upto the first 4 gb of ram on the system, and generally it only accesses upto about 2 or 3 before it crashes from what I've seen. So eventually yes, you will run into huge problems with a gig and more of sounds, especially if you have all of these sounds loaded in at one time.Hope this helps.

URL: https://forum.audiogames.net/post/515748/#p515748




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: what is bgt file sise limmits

lol ok thanks guys for your ansersone more question though, meadya players could play mor then 1 gb and it wont take a lot of the ram or the CPU

URL: https://forum.audiogames.net/post/515742/#p515742




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: what is bgt file sise limmits

@5, no. The OS will do that -- but if the OS is doing that, you've exhausted all available physical memory and the OS is swapping. That's a terrible thing to have happen and an excellent way to destroy hard drives. I'd say an upper hard limit for memory usage is 8 GB max, but that's (only) if the target machine has more than 8 GB of RAM. 1 GB is a conservative soft limit that should be adhered to, however.

URL: https://forum.audiogames.net/post/515741/#p515741




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: what is bgt file sise limmits

oh, so it will load the sound in memory? could I make it so it will load it at a temp folder to get over the ram limmits?

URL: https://forum.audiogames.net/post/515737/#p515737




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: what is bgt file sise limmits

The more important question for loading game assets is what are the limits of the machine you will be running on, not what are the limits of BGT.  I would advise you to assume that you have at most one gigabyte of ram to play with for the program as a whole, to assume that your game logic will need 50MB to 100MB of that for itself, and to assume that audio assets will be anywhere from 4 to 10 times larger than they are on disk when loaded in memory (4 if it's .wav, roughly 6 to 8 if it's a lossless codec like flac, 10 or more if it's something lossy like ogg).  If you start pushing these limits you will start not running well on low end machines.To give you some idea what I mean by lossless versus lossy formats: Swamp is 800MB as .wav, 80MB as .ogg.  You have to decode to an equivalent of .wav for in-memory use(i.e. not streaming, i.e. fast playback for bullets) which is your times 10 for that file, then you might be going to float32 from unsigned 16-bit, which is an additional times 2.As a fun but useful fact, stereo .wav files as typically seen will be around 200kb give or take per second, around 12 MB give or take per minute, around 720 MB per hour.  So you can (but shouldn't) load almost an hour of audio data into ram without streaming anything and you're still fine.

URL: https://forum.audiogames.net/post/515735/#p515735




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: what is bgt file sise limmits

well, i'm craisy, but not craisy enough to load a 1gb file, I was just asking to know what limmits I have to stik in, ya know, if I get craisy enough

URL: https://forum.audiogames.net/post/515729/#p515729




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector


  


Re: what is bgt file sise limmits

I don't believe there is a limit in the engine itself, however depending on hardware that could differ. Also the time required to load such a large sound would veyr on machine to machine. Also, why do you need to load that big of a file lol

URL: https://forum.audiogames.net/post/515726/#p515726




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


what is bgt file sise limmits

2020-04-03 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


what is bgt file sise limmits

so, I want to know what's the max file sise bgt could handellike could I load a 1GB sound? or what's the max sise it could load

URL: https://forum.audiogames.net/post/515722/#p515722




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector