Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Sagebrush
Feb 26, 2012

I'm currently using a 29-byte buffer because the data I'm handling has a fixed 3-byte preamble and then goes into a register that's 32 bytes wide. Feels pretty good op

Adbot
ADBOT LOVES YOU

Sagebrush
Feb 26, 2012

quote:

When I worked at Planet Moon, we made an educational game for the Gameboy DS called BrainQuest. The DS only has 4MB of RAM, and toward the end of the project, we were running right up against that limit. When the final assets came in and were added to the package, we were just over the 4MB limit. One of the engineers grinned and walked over to his computer. He opened up main.cpp and commented out the following line:

code:
unsigned char insurance[10240];

Sagebrush
Feb 26, 2012

COACHS SPORT BAR posted:

use whatever size you want just be polite about it

code:
	char buffer[1024];
	//thank you computer, keep this for urself
	malloc(1);
always tip the dealer

lol @ that weakass tip.

real ballas tip like this:

code:

#define B_SIZE 1024

char buffer[B_SIZE];
//go buy yourself something nice
malloc(B_SIZE >> 3)

  • Locked thread