Rockbox

Tasklist

FS#10585 - c200: Brickmania ball moves very slowly and bonus items don't fall down

Attached to Project: Rockbox
Opened by Bertrik Sikken (bertrik) - Saturday, 05 September 2009, 02:38 GMT
Last edited by Bertrik Sikken (bertrik) - Thursday, 17 December 2009, 22:38 GMT
Task Type Bugs
Category Games
Status Closed
Assigned To Karl Kurbjun (kkurbjun)
Operating System Sansa c200
Severity Low
Priority Normal
Reported Version Version 3.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

On sansa c200 and c200v2 in the brickmania game plugin, the ball moves very slowly. Also bonus items don't drop anymore, they just keep floating at the position of the brick they were in.

Reverting r22582 ("Brickmania: Make the game speed scale with the GAMESCREEN_HEIGHT") makes it work again.
This task depends upon

Closed by  Bertrik Sikken (bertrik)
Thursday, 17 December 2009, 22:38 GMT
Reason for closing:  Fixed
Comment by Asael Reiter (AsaelReiter) - Sunday, 06 September 2009, 10:29 GMT
Confirmed on Sansa Clip.
Comment by Asael Reiter (AsaelReiter) - Sunday, 06 September 2009, 11:22 GMT
Try this:
   bm.diff (1.6 KiB)
Comment by Asael Reiter (AsaelReiter) - Sunday, 06 September 2009, 11:28 GMT
Some minor change.
   bm.diff (1.5 KiB)
Comment by Asael Reiter (AsaelReiter) - Thursday, 10 September 2009, 20:23 GMT
About the speed:
I think that some colossal loop is needed a faster CPU, so the game is slower than the supposed.
Before r22582, It was supposed to be very fast, so it became balanced.
In r22582, the speed was changed, (by the size of the screen), and from then, it's supposed to be normal, and, in actual fact, slow.

Some time ago, I write some code to replace that loop (It's in  FS#10485 , but there is many other changes there)
This code, caused brickmania become very fast (if I remember it correctly, I couldn't finish level 4)
But this was before r22582, and there was to many other changes, so auto-merging is impossible.
However, I can rewrite this part of the code, but it's still a large change, so I think that it's better that a develop will have a look.
Comment by Asael Reiter (AsaelReiter) - Friday, 18 September 2009, 14:13 GMT
I think that this file make it a bit better.
Still, there are a lot of think that can be improved. (And also some bugs that can be fixed)
   bm.diff (2.8 KiB)
Comment by Karl Kurbjun (kkurbjun) - Tuesday, 10 November 2009, 17:11 GMT
Is this still a bug? The fixed point conversion should correct all of the problems smaller screens were seeing. The game loop could be faster, but it appears to be fast enough even with slower processors.
Comment by Bertrik Sikken (bertrik) - Thursday, 17 December 2009, 22:38 GMT
Works fine for me now on sansa clip and sansa c200.

Loading...