Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
timleader committed Sep 22, 2023
1 parent 0d01fed commit 5564ae7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions source/common/audio/audio.mixer.mix_samples.gba.s
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,16 @@ audio_mix_samples:
@ r12 = _audio_right_buffer
@--------------------------


@ would be more efficient with mixer buffer in iwram
@
@ would be more efficient with load one or two sample from all channels, do mixing completely in registers then store the result
@ this would mean for 4 channels you would only have to do 4 loads and 1 to 2 stores per sample
@ whereas at the moment we do 8 loads and 4 to 8 stores per sample
@
@ note the above might remove ability to do sound effects / volume manipulation ?
@
@ could just do 2 to 4 channels ago ...
@
@ would be more efficient with mixer buffer in iwram
@ could be a signed / unsigned issue, where things are scaling up too much ...


Expand Down
8 changes: 4 additions & 4 deletions source/common/states/debug/state_model.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ void st_modelviewer_update(st_model_context_ptr context, fixed16_t dt)

if (key_is_down(KI_UP))
{
context->character_rotation.x -= F16(0.01);
context->character_rotation.x -= F16(0.05);
}
if (key_is_down(KI_DOWN))
{
context->character_rotation.x += F16(0.01);
context->character_rotation.x += F16(0.05);
}
if (key_is_down(KI_LEFT))
{
context->character_rotation.y += F16(0.01);
context->character_rotation.y += F16(0.05);
}
if (key_is_down(KI_RIGHT))
{
context->character_rotation.y -= F16(0.01);
context->character_rotation.y -= F16(0.05);
}

if (key_is_down(KI_L))
Expand Down

0 comments on commit 5564ae7

Please sign in to comment.