PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

GapiDraw vs PocketFrog performance discussion

Well, its been awful quiet on this forum lately. There's an interesting discussion on the PocketFrog forum concerning GapiDraw vs PocketFrog performance comparisons. You can find the thread here:

http://www.pocketmatrix.com/forums/viewtopic.php?t=14899

Based on the timing figures posted by Johan, I would certainly like to see improvements made in unoptimized opacity blits (not 50% opacity). There seems to have been a serious loss of performance in these areas moving from GD1.04 to the 3.0 release.

While this may or may not be due to changes made to increase performance on the stationary PC, I consider GapiDraw first and foremost an API targeting mobile platforms and sadly, that's where the performance has slipped.
There seems to have been a serious loss of performance in these areas moving from GD1.04 to the 3.0 release.


I wouldn't say serious loss of performance, but I can agree that performance should be equal at least.

While the new alpha blend routines are quite much faster than the older functions, they also unfortunately very quickly fill up the instruction cache. I will see what we can do to improve this on handheld devices in a future update.

This test was actually the first "real" benchmark we did on GapiDraw and we plan to use it for future releases as well...
Well, 30+% loss of performance from 1.04 to 3.0 is a pretty big percentage. I realize we're talking milliseconds here, so serious is probably not the best choice of words. Lets say considerable then.

I think this benchmark is a good thing since you now have a starting point to work from in improving the next release. I still can't emphasize enough that I feel the focus of GD should be for mobile performance and not the desktop. If I had wanted to continue developing games for the desktop (which I did for many years) I would have stayed there using DX.
I agree that the focus should be on handheld devices, I just never got around to do a real benchmark lately. :) We'll fix the performance differences for the next release (making the next version the fastest in just about every operation)...
Just a friendly suggestion...

Don't worry so much about making the next version the fastest in just about every operation.

Instead, work on making it affordable for just about everyone.

You've got a 30+% decrease in performance as G.R. pointed out, I think your going to see AT LEAST that percentage decrease in people using GD because few can afford it. THAT'S a bigger problem than a few extra FPS in my opinion.

But it IS of course just my opinion. Take it for whatever you think it's worth.
fzammetti: Quite off-topic I would say.. Please try to stick with the original topic of the thread or post a new thread if you want to discuss your speculations of the future GapiDraw user base.
I disagree, it's very much on-topic. But, since I don't feel like getting into an argument over it, I won't post anything beyond this message in this thread that doesn't directly relate to performance.

Now, just to be on-topic...

I am very surprised to see the overall performance drop from 1.04 to 3.0. I think it's a fair statement to say that performance shouldn't ever get worse from one version to another, except perhaps in some isolated circumstances, certainly not in as many areas as your benchmark shows.

I know, you've had to make some adjustments to support multiple platforms. I can buy that, to an extent. But I think it's fair to ask why benchmarks weren't performed each step of the way and adjustments made?

Selling a library as a professional, for-profit product is much different than a guy doing things alone in his basement, and there is a higher expectation of the development process.
Personally, I give Johan the benefit of the doubt. Sometimes benchmarking is overlooked or delayed - I haven't benchmarked anything in a long time even though I know I should.

I only saw a noticeable drop in performance in the blending routines. The other drops weren't significant enough to really be a factor. Having the benchmarks now is a good thing as we can now gauge improvements from version to version.
There are two things I expect when paying for software: quality assurance testing, and benchmark testing.

Features I can take or leave, but I have to know that what is actually offered works as advertised, and isn't totally buggy. With free software you take what you get, but when you are paying you want that kind of assurance. It's true that bugs happen but I expect at least reasonable QA testing to go into a product before release.

And with software where performance is important (usually anything computationally intensive like graphics, math, data mining, etc.) I consider benchmark testing to effectively be part of that QA process. That is, a slow feature is effectively the same as a buggy feature, in this type of software.

Now having said that, VI has obviously done a good job up until now. There are few bugs in the software that have been discovered outside of VI, and performance is good if lacking a little lately. However VI is now entering the commercial realm where standards are higher. QA and benchmarking are going to be absolutely necessary going forward. It seems that Johan realizes this now.
Well-said, better than I did certainly.

While I would give JOHAN the benefit of the doubt, I DO NOT give VI the same benefit of the doubt, because where it was Johan as a one-man show, that's much different than a commercialized product sold by a company. I guess it's fair to see how it goes in the future as far as this whole thing goes, but there is no longer any benefit of the doubt for Johan because there frankly is no longer any Johan, I'm dealing with a corporate entity now, and there are different standards in play.
Disclaimer: I certainly don't mean to be rude, but I'm just tellin' it how I see it.

So let me get this straight.. we're paying for a product that's slower than the free version (in some cases, not all)? If I'm going to make a game where I need performance, I'm going to use whatever product gives me that performance. I strongly suggest you allow us to use whatever version of GapiDraw we so desire, so long as we do it under the current license. You already said that you'd continue to support 2.0 and offer bug fixes for it, so I don't see what the big deal is here.

I already have to pay for a product because some random people wanted multi-platform capabilities (all most of us care about is PPC), and now I'm paying for a slower product because of it as well. So far, going multi-platform has done nothing good for GapiDraw, except put money in your pocket.
wyrd wrote:So let me get this straight.. we're paying for a product that's slower than the free version (in some cases, not all)? If I'm going to make a game where I need performance, I'm going to use whatever product gives me that performance. I strongly suggest you allow us to use whatever version of GapiDraw we so desire, so long as we do it under the current license. You already said that you'd continue to support 2.0 and offer bug fixes for it, so I don't see what the big deal is here.


To be honest, once you license 3.0, I don't think there is any reason that you couldn't use version 1 or version 2. I could be wrong on this point, but I doubt VI would have any objection.

wyrd wrote:I already have to pay for a product because some random people wanted multi-platform capabilities (all most of us care about is PPC), and now I'm paying for a slower product because of it as well. So far, going multi-platform has done nothing good for GapiDraw, except put money in your pocket.


I guess I'm one of those random people that wanted multi-platform support, particularly for Palm OS - Symbian is a bonus to me, and Desktop support is only useful for development in my case. Yes, 3.0 is slower in a handful of test cases, and faster in another handful. I'm betting that 3.x will be faster in nearly all cases now that solid benchmarks have been generated, so performance issues are a moot point in my opinion.
"To be honest, once you license 3.0, I don't think there is any reason that you couldn't use version 1 or version 2. I could be wrong on this point, but I doubt VI would have any objection."

Straight from Shahab's mouth:

"In line with standard practice in the software industry, we do not offer older versions of GapiDraw anymore. This means that we do not issue new licenses for versions prior to 3.0".

Now, you may be right that if you get a 3.0 license they'll have no problem with you using an older version, but that's a moot point because why would you pay for a 3.0 license and then use a prior version? Well, aside from the fact that it's your only choice if you want to use GD at all. But, if we interpret his words literally, then no, even THAT'S not an option.

I'm betting that 3.x will be faster in nearly all cases now that solid benchmarks have been generated, so performance issues are a moot point in my opinion.


And when will 3.x be released? 3 months? 4 months? A year? Certainly I shouldn't have to wait until the next release just to see if performances improve. I should be able to use 2.x NOW, and then upgrade to 3.x if the performance is acceptable.
fzammetti wrote:"...why would you pay for a 3.0 license and then use a prior version?


Well, if you have a product that is nearly finished or in beta testing under the older version and don't want to make late changes. Or if, as has been noted, you use non-trivial opacity settings that result in slower performance under 3.0 and simply can't wait for that issue to be addressed in an update. I'm sure there are a number of reasons that could be come up with to justify using the older version over the newer if you are a 3.0 licensee.
Yes, those reasons do make sense. What I was trying to say in my admittedly convoluted way is that if I paid for a 3.0 license, I would have a huge problem with having to use a previous version because 3.0 was substandard in some way that was affecting me. Part of paying for a 3.0 license is that they are supposed to support you and update the product to make things like that not an issue.

Look, I'm less concerned with performance than most other factors anyway. To me, GD in it's WORST form performs quite well. I mean, what's the difference between 50FPS and 55FPS in most cases anyway?

I think the basic point here, which I think is valid, is that we're being asked to pay a huge sum of money (for many of us that's true anyway) for a product that doesn't even perform as well in many instances as prior versions that were free. Whether v3.1 makes it blow past everything else is another issue, and whether paying for 3.0 gives me the right to use 1.04 or something else is a another issue too, but one I wouldn't even consider an option if I'm paying for 3.0. I'm not going to pay for Windows XP so that I can get access to Windows 3.1, you know? :)