Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Behold, the world’s *first ever* FB palette library!!
#11
Adigun, it's a nice work. But small siggestion: Use "SELECT CASE as const TargetCol" It is mutch faster.
url]http://fbide.sourceforge.net/[/url]
Reply
#12
To everyone (especially to lillo and VonGodric, too! Cool ! ):

Thank you all for your very supportive comments and praises about my palette library!! :king: !! I mean, listen, ever since it has been about two (2) years ago that I got my first original palette lib created for QuickBASIC 4.5 and 7.1 (I believe it was originally called “The 8-Bit Palette Machine for Future.Library”), I have taken quite my careful and thorough time to create such faithful, uncompromised palette routines that do what they are *designed* to do in the exact first place, know what I mean? Big Grin=b Praise God for first inspiring me to do it all, too! Hey, quality is at the top of my game here, you know now? Wink

And lillo and DrV, you both are absolutely correct that GFXlib 2 was first originally written in C, not in FreeBASIC. I know that now. :wtnod: And so, I thank you two a lot on that, truly!

VonGodric, regarding my lib today, as for your suggestion which is:

Quote:Use "SELECT CASE as const TargetCol" It is mutch faster.

......I *just* might wanna try it, particularly for my next coming version of this (for after v1.0 of my lib). In my around 20+ years of BASIC programming, man, I’ve been _so_ familiar with QB that when I have used “Select Case” in such a normal routine way so many countless times, I have even carried that VERY way directly into FB myself. BUT, like I said, I just might wanna try it indeed (I have just yesterday learned a bit about pointers from your really good tutorial about them, VonGodric! ;*) ! )!

And finally, in case any of you are wondering just how many total lines of code that the original FB source of The New FreeBASIC 8-Bit Palette Machine has, it is (get this!!)....

[Image: file.php?id=50]

Yep, 5,071 lines long indeed. And that is just for v1.0 of this alone!! (Wow, I *never* even thought that I have written that many myself!! :o ! AMAZING.)

That is just how much effort indeed was placed in this whole entire FB lib here since it first got started late last month (February 2005). And now you know, ladies and genlemen. Big Grin



And finally, over to you Barok:

I am *so* sorry that your own palette routines in FB did not work too well. Sad You are right, man, your thing had quite a lot a bugs that need to be ironed out in order to make your routines work right the way they successfully did in QB. Hey, I wanna wish you well on the bugfixes, Barok. You count on it now!! Wink=b



To all of you, I thank you once again for such excellent time well spent today. :king: Be checking you later!!!



ENJOYING THE MAGNIFICENT TIME WITH YOU ALL HERE,

[Image: file.php?id=32]
Adigun Azikiwe Polack
One of the Founders of “Aura Flow” ::: Continuing Developer of “Frantic Journey”
Current Developer of “Star Angelic Slugger” ::: Webmaster of the “AAP Official Projects Squad”
Original Creator of the “The New FreeBASIC 8-Bit Palette Machine”



P.S. To one of the Admins of QBasicNews.com, I thank you *especially* for moving this topic of mine right over to the “FB Projects” section, right where it needs to be. I truly appreciate that move now!! Big Grin !

UPDATE (from Sunday, March 13, 2005 at 10:40pm EST): Following VonGodric’s own advice on the “SELECT CASE as const” thing that I mentioned from earlier within this post, I have just tried it on my lib’s source code and applied it in there. When I then gave it a compile on FB v0.12 to build a custom library out of it, IT WORKED FINE! Wink And as well, people, when I later compiled and ran my lib’s demo using that newly created version of the library file, I noticed that the palette operation speed for many of the routines supporting the default GFXlib 2 palette was much faster now, noticably! Thank you, VonGodric!! d=Big Grin=b !
url=http://dhost.hopto.org/aapproj/][Image: file.php?id=194][/url]
Your *official* home of the FreeBasic GFX Demo Central, now holding over 150 FB graphics demos so far!!! Big Grin !
Reply
#13
According to changelog of FreeBasic:
[added] SELECT CASE AS CONST statement, only integer constants are allowed and a jump table is generated making the it much faster than an ordinary SELECT when more than 4 CASE's have to be checked (v1c)

so it is new to FB and was not part of qb.
url]http://fbide.sourceforge.net/[/url]
Reply
#14
To VonGodric once again here:

VERY interesting. So that may explain why the palette operation on my routines that do support the default GFXlib 2 palette was noticably faster indeed than it was before, all from the instant I applied that “SELECT CASE as const” thing into my source and recompiled it! You’re brilliant, you know that, man? Big Grin The thing is, not only is this form of “SELECT CASE” indeed all-new to FB, but it *also* just debuted in FB v0.12, too (as I found out for myself from yesterday now)! Also, you are correct too that that new form there was never even part of the old QB, originally. Wink

Also of vital note, this week (if not even SOONER! :king: ! ), I am gonna devote at least an entire webpage to my current new palette lib you are looking at right here, all on my *very* next update of the AAP Official Projects Squad!! I will keep you and the others posted in this thread, VonGodric. Hang on now! Cool

I thank you once again for your very insightful information. See you once again as I get ready to plan the next update of my site today. ^_-=b !



[Image: file.php?id=32]
- Adigun Azikiwe Polack
One of the Founders of “Aura Flow” ::: Continuing Developer of “Frantic Journey”
Current Developer of “Star Angelic Slugger” ::: Webmaster of the “AAP Official Projects Squad”
Original Creator of the “The New FreeBASIC 8-Bit Palette Machine”
url=http://dhost.hopto.org/aapproj/][Image: file.php?id=194][/url]
Your *official* home of the FreeBasic GFX Demo Central, now holding over 150 FB graphics demos so far!!! Big Grin !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)