Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #7678
| Newsgroups | comp.programming |
|---|---|
| Date | 2017-03-30 13:54 -0700 |
| References | (1 earlier) <83b023c0-2a8f-4802-9337-1dff9f2e73d9@googlegroups.com> <0e9404d0-e8f0-4f6b-9a77-9f715a2b0838@googlegroups.com> <a1f33c8e-48b7-43b4-b1c2-497c80ccff00@googlegroups.com> <a77c152f-8437-4586-8de4-b1d9e07befc6@googlegroups.com> <9e943d01-bc80-48de-bfbe-a5a264e8e668@googlegroups.com> |
| Message-ID | <07c28cb3-9212-4ea8-9cfa-b5ff4e473614@googlegroups.com> (permalink) |
| Subject | Re: how 2 compress Fat Bitmap |
| From | fir <profesor.fir@gmail.com> |
W dniu czwartek, 30 marca 2017 22:50:14 UTC+2 użytkownik fir napisał: > W dniu czwartek, 30 marca 2017 22:40:22 UTC+2 użytkownik Ed Prochak napisał: > > On Tuesday, March 28, 2017 at 3:26:00 PM UTC-4, fir wrote: > > > W dniu wtorek, 28 marca 2017 21:19:27 UTC+2 użytkownik fir napisał: > > > > W dniu wtorek, 28 marca 2017 19:26:35 UTC+2 użytkownik Ed Prochak napisał: > > > > > On Monday, March 27, 2017 at 12:13:33 PM UTC-4, fir wrote: > > > > > > i get a little big tired when coding roguelike and > > > > > > maybe i could rest coding a side problem > > > > > > > > > > > > in my roguelike i use now 24bpp bitmap to store a tile map, > > > > > > it is 2000x2000 pixels (as pixel is something like 'big meter' > > > > > > in game world (something like 1.5 m x 1.5 m) this would > > > > > > be like a 3 km x 3 km square of land > > > > > [] > > > > > > > > > > > > it is 12 MB bmp file and loading it makes 1 second > > > > > > delay at game startup (on my hdd, on some more new > > > > > > hdd could be faster) > > > > > > > > > > > > > > > > [] > > > > > > the question is - what algorithm to use to pack it > > > > > > - it could be reasonably simple to write but also maybe > > > > > > something more effective then if i would just turn > > > > > > colors to palette entries? > > > > > > > > > > > > > > > > > > what do you think? > > > > > > > > > > Why don't you check out open sources for algorithms like > > > > > jpeg compression? Sure you did not write it, but it is > > > > > sometimes very helpful to learn from someone else's code. > > > > > > > > > > ed > > > > > > > > i suspect it would be to hard - (i dont wanna spend month on this topic only few spare hours maybe) > > > > > > > > > > as to jpg anyway this is good idea, i checked how big > > > loseless jpg would be (i assume 100% jpg quality > > > in ifranview is looseless) -> it made 2.9 MB jpg > > > it is it seems quite worse than simple primitive > > > indexing.. seems jpg does not go to much well in > > > loosles compression (or im wrong somewhere) > > > > > > > > Earlier you said: > > "even compressing each pixel into index form - thus reducing > > 24 bit of color into loke 6-12 bit of index would spare to > > half or 1/4 of oryginal size." > > > > Yet you say lossless jpeg with the same ratio (2.9/12~1/4) > > is somehow worse. > > > > Okay, I tried to help and you did look. > > Good luck. > > ed > > you seem to be idiot, dont you? you like to waste people time as idiots do, dont you? you should maybe use a bit of brain before and know that when i was sayin here about > indexing results were better than 2.9 MB (like when indexing 4 pixels at once).. read and stop playin idiot who gives idiot advices where not understanding the basic points, idiots are not welcome ps i normallu used a word idiots for people that are genarally disabled but also here seeing such stupid comments also makes me a bit 'uneasy', idiots please stay out
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-27 09:13 -0700
Re: how 2 compress Fat Bitmap JJ <jj4public@vfemail.net> - 2017-03-28 08:06 +0700
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 00:43 -0700
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 01:02 -0700
Re: how 2 compress Fat Bitmap Ed Prochak <edprochak@gmail.com> - 2017-03-28 10:26 -0700
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 12:19 -0700
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 12:25 -0700
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 12:33 -0700
Re: how 2 compress Fat Bitmap Ed Prochak <edprochak@gmail.com> - 2017-03-30 13:40 -0700
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-30 13:50 -0700
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-30 13:54 -0700
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-30 15:10 -0700
Re: how 2 compress Fat Bitmap Ed Prochak <edprochak@gmail.com> - 2017-04-03 07:11 -0700
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-04-03 08:20 -0700
Re: how 2 compress Fat Bitmap Robert Wessel <robertwessel2@yahoo.com> - 2017-03-28 16:40 -0500
Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 15:19 -0700
csiph-web