mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-08 03:54:27 +00:00
Fixed failure of the optimised route to pump the pixel clock; removed optimisation entirely for now.
This commit is contained in:
parent
cd7876a746
commit
04693b067c
@ -636,8 +636,8 @@ void TIA::draw_player_visible(Player &player, CollisionType collision_identity,
|
|||||||
int adder = 4 >> player.size;
|
int adder = 4 >> player.size;
|
||||||
|
|
||||||
// perform a miniature event loop on (i) triggering draws; (ii) drawing; and (iii) motion
|
// perform a miniature event loop on (i) triggering draws; (ii) drawing; and (iii) motion
|
||||||
if(is_moving_[position_identity] || player.graphic[player.graphic_index])
|
// if(is_moving_[position_identity] || player.graphic[player.graphic_index])
|
||||||
{
|
// {
|
||||||
int next_motion_time = motion_time_[position_identity] - first_pixel_cycle + 4;
|
int next_motion_time = motion_time_[position_identity] - first_pixel_cycle + 4;
|
||||||
while(start < end)
|
while(start < end)
|
||||||
{
|
{
|
||||||
@ -713,12 +713,14 @@ void TIA::draw_player_visible(Player &player, CollisionType collision_identity,
|
|||||||
player.pixel_delay = 1;
|
player.pixel_delay = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
// just advance the timer all in one jump
|
// // just advance the timer all in one jump
|
||||||
position = (position + end - start) % 160;
|
// const int length = end - start;
|
||||||
}
|
// position = (position + length) % 160;
|
||||||
|
// player.pixel_position = std::min(32, player.pixel_position + adder * length);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
void TIA::draw_player(Player &player, CollisionType collision_identity, const int position_identity, int start, int end)
|
void TIA::draw_player(Player &player, CollisionType collision_identity, const int position_identity, int start, int end)
|
||||||
|
Loading…
Reference in New Issue
Block a user