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: 2422
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Weber's Rants (tutorials)

Post by D3thAdd3r » Thu Feb 18, 2010 4:08 pm

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: 4474
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Weber's Rants (tutorials)

Post by uze6666 » Thu Feb 18, 2010 5:30 pm

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. » Fri Feb 19, 2010 1:56 pm

Thank you, just what I was looking for :D

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

Re: Weber's Rants (tutorials)

Post by D3thAdd3r » Sat Feb 20, 2010 2:27 am

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 » Sun Feb 21, 2010 6:37 pm

can't wait for the collision wiki :D

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

Re: Weber's Rants (tutorials)

Post by D3thAdd3r » Mon Feb 22, 2010 8:04 am

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 » Mon Feb 22, 2010 8:39 am

Great stuff, Lee. Keep 'em coming.

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

Re: Weber's Rants (tutorials)

Post by D3thAdd3r » Sun Mar 07, 2010 11:41 am

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: 4474
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Weber's Rants (tutorials)

Post by uze6666 » Sun Mar 07, 2010 6:58 pm

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: 2422
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: Weber's Rants (tutorials)

Post by D3thAdd3r » Mon Mar 08, 2010 2:10 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests