Author Topic: Dingux PuzzleTube  (Read 8036 times)

pcercuei

  • ***
  • Posts: 1397
    • GitHub
Re: Dingux PuzzleTube
« Reply #15 on: February 05, 2012, 11:32:15 pm »
It is slower as you have to blit the whole intermediate surface on the screen.
« Last Edit: February 05, 2012, 11:34:53 pm by Ayla »

Ziz

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Dingux PuzzleTube
« Reply #16 on: February 06, 2012, 12:22:13 am »
Don't you listen to me? Zear tested it for me. It is not slower.  ;)

Both times 20 fps (with textures).

I know in theory it should be slower because of blitting. But it isn't. Some reason could be, that blitting of hw-surface to the screen-hw-surface is very fast because of some hw-optimization. I really don't know. I just know: It works.

greetings, Ziz
I am a leaf on the wind - watch how I soar. Wash

pcercuei

  • ***
  • Posts: 1397
    • GitHub
Re: Dingux PuzzleTube
« Reply #17 on: February 06, 2012, 12:51:37 am »
The slowdown does not appear in your case because 20fps is really low. If you render at 60fps, you will render three times more frames in a second, so the slowdown will be three times higher. Probably more than that actually, because you eat more memory baudwidth.

If you really want to see the difference, try to implement it whithin gpmark.
« Last Edit: February 06, 2012, 12:59:06 am by Ayla »

Ziz

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Dingux PuzzleTube
« Reply #18 on: February 07, 2012, 12:28:35 am »
If I have 20 fps with Double Buffering and 20 fps with my method then my way needs at most 0,9period ~ 1 frame more (if we assume 19.5 fps with my method and 20.49period with Double Boufering, so that is always shows 20). 1 frame at ~20 fps is 50ms. We have 20 frames per second, so my method needs at most 2.5 ms more time per frame.

Lets assume I have with Double buffering 60 fps. Then every frame needs ~16.7 ms to draw. Furthermore we assume, that my method is with more fps still as slow as with 20 fps. Then with my method we need at most 2.5 ms more per frame. That would mean 19.2 ms per frame. That would be ~52 fps. So I loose ~8 fps in a worst case reflection.

That's acceptable if it runs with this method on Dingux and OpenDingux. ;-)
I am a leaf on the wind - watch how I soar. Wash

Pingouin

Re: Dingux PuzzleTube
« Reply #19 on: February 07, 2012, 05:10:42 pm »
I agree with both.

Ayla is right that if there is an optimum way to do stuff, you might as well use it, especially if you need all the performance you can get.

But I also agree with Ziz: if it already works perfectly fine, not much point in trying to squeeze out a few more CPU cycles that you do not need to do anything else.

In this case, it works flawlessly so I'm not bothered whether memory accesses are optimum!

smida3

  • *
  • Posts: 142
Re: Dingux PuzzleTube
« Reply #20 on: February 09, 2012, 06:21:19 pm »
Hi the dingoo puzzletube works fine for me so i made a video :
<a href="http://www.youtube.com/watch?v=hKljsbZKAEw" target="_blank">http://www.youtube.com/watch?v=hKljsbZKAEw</a>
NI !

Ziz

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Dingux PuzzleTube
« Reply #21 on: February 10, 2012, 12:04:27 am »
Thank you, that's great!
I always wanted to make a new video with sound, but on my desktop I don't manage it to record sound properly and my camera has no microphone. -_-

Seems to run pretty well. :D

I hope, it is okay, if I share this video to other threads of puzzletube tomorrow?

Good night,
Ziz
I am a leaf on the wind - watch how I soar. Wash

smida3

  • *
  • Posts: 142
Re: Dingux PuzzleTube
« Reply #22 on: February 10, 2012, 05:50:14 am »
Thanks glad you liked it and
do whatever you want with the video  ;D
Smida3
NI !

Ziz

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Dingux PuzzleTube
« Reply #23 on: September 05, 2014, 02:45:15 pm »
As you may know, to not spam the C4A server with bad scores, but to ensure, that every score, that shall be send, is actually send, I do two thing:
  • I send only the score, if you made it to the local high score
  • At start of Puzzletube I check, whether your local highscore is already at the C4A server. If not I resend it.
This works perfect for the eternal highscore. But C4A does also support showing only scores of a specific month. Furthermore there are sometimes competitions to get the best score in a specific month. With this your good scores of a month will not be send, because you were better sometime earlier in another month.
So I implemented a function to delete every third place of the hard mode (easy mode is not send anyway). With this you can send your best score of Puzzletube of C4A every month. :D
I am a leaf on the wind - watch how I soar. Wash

 

Post a new topic