Search found 40 matches

by Dwedit
Mon Oct 22, 2012 6:58 pm
Forum: Off Topic
Topic: memory management for a noob
Replies: 3
Views: 10735

Re: memory management for a noob

The problem with this question is that "Memory Management" is a very broad term. It could refer to how RAM is physically allocated (static arrays vs malloc/new, or even allocating from areans), or how objects are assigned to each other. (Always Deep Copy, Reference Counting, or Garbage Collection).
by Dwedit
Thu Jul 19, 2012 9:27 pm
Forum: DS Development
Topic: Simultaneous button presses
Replies: 2
Views: 4411

Re: Simultaneous button presses

keysDown() tells you what keys have *changed state* from not-pressed to pressed.
keysHeld() tells you what keys are currently in a pressed state.
by Dwedit
Sat Jul 14, 2012 7:20 pm
Forum: DS Development
Topic: zlib using bios functions
Replies: 3
Views: 3949

Re: zlib using bios functions

Just because there's a bios function doesn't mean it will be any faster. Compiling code in ARM mode instead of THUMB mode will make it run faster. Then profile it to see what the "hot" loops are, and rewrite those in ASM if they need it. Placing code in ITCM makes it faster, but loops end up getting...
by Dwedit
Wed Jun 27, 2012 6:18 am
Forum: Announcements
Topic: devkitARM release 41
Replies: 1
Views: 25752

Re: devkitARM release 41

Big congratulations here at getting rid of all that exceptions stuff. *applauds* Only thing is I was getting exception-handling code added when using the "new" operator. Even when I tried using the "nothrow" version, it was also including the code. When I switched to malloc and placement new, the ex...
by Dwedit
Wed Jun 27, 2012 4:16 am
Forum: Bug Reports
Topic: "cp" command in MSYS appears to have broken
Replies: 0
Views: 4348

"cp" command in MSYS appears to have broken

The "cp" command in MSYS appears to have broken. Not sure if reverting back to MSYS 1.0.15 is the best idea or not, but this means that the newer version has bugs in it. Here's what I'm doing here: I have created a FAT32 disk image, and mounted it using FileDisk, making a V:\ drive. I am copying fil...
by Dwedit
Sun Jun 17, 2012 6:34 pm
Forum: devkitARM
Topic: should I use assembly
Replies: 2
Views: 4834

Re: should I use assembly

There are other things you can do to optimize code. First, if you are using any significant amount of multiplication or division, build as ARM code instead of THUMB code. GCC generates really bad THUMB code for math heavy code, but it's better for ARM mode. Second, there's a trick to write a functio...
by Dwedit
Sun Jun 17, 2012 4:49 pm
Forum: Bug Reports
Topic: Dependency problem is back again - _divdi3 brings in unwind
Replies: 2
Views: 4380

Re: Dependency problem is back again - _divdi3 brings in unw

Good.

For now, I'm just using dummy functions (blank functions with the same name) until the bug is fixed.
by Dwedit
Sun Jun 17, 2012 6:20 am
Forum: Bug Reports
Topic: Dependency problem is back again - _divdi3 brings in unwind
Replies: 2
Views: 4380

Dependency problem is back again - _divdi3 brings in unwind

The dependency problem is back again.
_divdi3.o brings in unwind-arm.o even though it does not call anything from there.
This leads to unnecessary dependencies being linked in.

edit: oops, this should have been posted in Bug Reports.
by Dwedit
Wed Mar 14, 2012 8:14 pm
Forum: DS Development
Topic: Please help me with some VRAM updating problems...
Replies: 5
Views: 8354

Re: Please help me with some VRAM updating problems...

The entire 3D screen is rendered every frame. You can't drop down to 30 FPS, unless you are actively using the video capture hardware to save an image of the 3D scene.

Maybe divide your texture updates across 2 frames.
by Dwedit
Tue Feb 07, 2012 4:17 am
Forum: devkitARM
Topic: gba.specs
Replies: 2
Views: 3295

Re: gba.specs

The only part of the .specs file I know is the part where it picks the linkscript (.ld) file. Since I often use custom linkscripts, I need to make the linker use a different specs file just to pick a different linkscript.