Weber's Rants (tutorials)

Topics related to the API, programming discussions & questions, coding tips, bugs, etc. should go here.
Post Reply
User avatar
D3thAdd3r
Posts: 3175
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Weber's Rants (tutorials)

Post by D3thAdd3r »

Just wanted to make a quick mention of this. Recently I've put together a few documents(several half documents) about some subjects I didn't see covered, or at least more detail into them. You can find them in the wiki under Help, Tips, & Tutorials or directly here. I will add and finish documents as time allows. There are items tailored to new comers, and some that might be of interest even to experienced Uzers.
User avatar
uze6666
Site Admin
Posts: 4778
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Weber's Rants (tutorials)

Post by uze6666 »

Lots of great stuff as usual Lee! :D
D.C.
Posts: 4
Joined: Sat Jan 09, 2010 7:43 pm

Re: Weber's Rants (tutorials)

Post by D.C. »

Thank you, just what I was looking for :D
User avatar
D3thAdd3r
Posts: 3175
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: Weber's Rants (tutorials)

Post by D3thAdd3r »

Thank you, just what I was looking for :D
Good, glad to hear you found some information useful. If there are any other topics not already covered on the wiki, just make a mention of it. I'll try and take a swing at it.
sxdemon
Posts: 5
Joined: Fri Feb 19, 2010 4:18 am

Re: Weber's Rants (tutorials)

Post by sxdemon »

can't wait for the collision wiki :D
User avatar
D3thAdd3r
Posts: 3175
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: Weber's Rants (tutorials)

Post by D3thAdd3r »

I started the collision rant, only about half done. Hopefully I will have time tomorrow.
User avatar
paul
Posts: 457
Joined: Sat May 02, 2009 8:41 am
Location: Brisbane, Australia

Re: Weber's Rants (tutorials)

Post by paul »

Great stuff, Lee. Keep 'em coming.
User avatar
D3thAdd3r
Posts: 3175
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: Weber's Rants (tutorials)

Post by D3thAdd3r »

Well, I suspect mostly those who are reading these may already be in the know ;) But I added a small tutorial I think is likely to help someone at some point, therefore worth it. Some very easy ways to save large amounts of flash, and easily overlooked.

http://uzebox.org/wiki/index.php?title= ... ther_Stuff

Anything other specific things, I would be glad to hear about!
User avatar
uze6666
Site Admin
Posts: 4778
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Weber's Rants (tutorials)

Post by uze6666 »

Excellent! Lot's of thing I've always wanted to have written somewhere, particularly the about the wave table! One trick to reduce music tracks is to use patches at mini patterns. Sure it's tricky to sync with the normal song, but you can save a bunch of memory, specially for the percussion track. I used this trick to significantly reduce the music size on B.C Dash. Check the "beat loop" patch I made here. Oh yeah and by the way, the CFLAGS += -mcall-prologues does not always results in reduced size. Sometime it even increases the size! So I recommend you check with and without when you start to get short on flash. Another flag that can shorten code size (perhaps at a slight expense to speed): CFLAGS += -fno-inline. GCC will often inline many times the same function if it considers it small.

Thanks!

-Uze
User avatar
D3thAdd3r
Posts: 3175
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: Weber's Rants (tutorials)

Post by D3thAdd3r »

Thanks, I've updated the information and also listed the possible caveats you mentioned. Great idea on the mini patterns.
Post Reply