Polygon fill rate... I have some figures... might be of interest.
I have created a library that makes the drawFilledPath in the blackberry Graphics object to fill polygons.
I used polygons of 8 summits with a mixture of convex and concave vertices.
I just call the function with a null value for the pointtype and offsets (which means a path and the lines connecting the edges).
He painted 10000 polygons in 5 seconds. I just made an invalid so it was drawn in the bottom, but not visible until the end.
So, that's a rate of about 2000 complex polygons per second.
Now, if you use squares or triangles I suppose that the rate is considerably higher. I would love to have access to the blackberry for this function JNI code, as I have an algorithm very fast to determine whether a point is inside a triangle. This is normally used in the algorithms of triangulation, which is what would have been used and the GPU has a triangle block at the hardware level, so that the speed of the CPU would be linked to the triangulation algorithm.
Anyway, this isn't a bad rate for a phone :-)
If you have used squares/triangles, you would probably get a much higher rate in the order of perhaps as high as 10000 triangles per second. (I didn't have the time to do this test).
I hope it's useful to someone.
BTW, I used a screen with a button to do various tests and a less than BitmapField containing a bitmap which I had extracted the graphics context that I used for all drawing. He also took care of clipping of the polygons that ran outside the region of the BitmapField. I also discovered that it would be nice if the area had its own invalidate the function I call, I could always call the display invalidate the function and use of the scope to only redraw the bitmap image area (something to note).
Since this is just a tip, I'll just mark it as resolved.
-Donald
Info only - solved.
Tags: BlackBerry Developers
Similar Questions
-
I have some days left in Illustrator in the first instance and I just downloaded today.
I have some days left in Illustrator in the first instance and I just downloaded today. It was my sisters laptop (now it's mine) and she had her own creative cloud before here. It download the illustrator of the trial at the time (with its own Adobe account) but now there just decided to learn Illustrator - I download the program and it says the trial expired from the moment that I installed it! I was about to pay for a month, but I'm not enough, confident that will happen if I don't? It is said in the contract that if I cancel my order on the first 14 days my money will be found. 14 days this account as part of the trial days? Or will be returned my money even if I have no trial days remaining for a reason that I don't undestand.
Your sister has already exhausted the allotment of the trial so that the machine when it has installed and used the trial. You don't get a second chance with the same machine. The duration of the trial is not considered for the duration of subscription use. What you might not be aware of, is that you normally are not only subscribe for a month... you can pay for a month, but it is usually part of a one year subscription, for which you are responsible and cannot drop without penalty after the 14 day period. There is an option to get a subscription per month for a higher cost, so be careful what plan you choose if you don't know that you can find both within 14 days to try out the software.
-
Sierra Siri, «I have some problems with the connection...» »
Guys,
I just installed Sierra on my MacBook Pro (retina, 13 inches, early 2015) version 10.12. I can't get Siri at work, the app tracks, he hears what I'm saying, but after awhile, he returns with two messages, both on the screen and verbally "I have some problems with the internet connection. Please try again in a moment. "&"Sorry, I'm having problems with the connection. Please try again in a moment. »
Any ideas?
Thank you
N
It's a network problem.
Check the proxy settings that blocks maybe, or a firewall.
System Preferences > network > Advanced (for your current connection) > Proxies
Something there?
-
Yesterday, I paid $29.99 thinking I was getting Grime Fighter, as I have some dirt, but he tells me that I don't have this feature, why the audit! What are the characteristics of fact fees cover $29.99
Do you mean that Avast program: https://www.avast.com/en-us/grimefighter
We can not probably help you with that here on the Firefox support site, but Avast has a page of support here: https://www.avast.com/en-us/support#grimefighter
-
Hi, my asus memo pad hd 7, I have some problems whit videos, they run but Pentecost numerous scratches in the image.
What can an i?
the firefox is apdated.
Thank you
You would check Firefox Beta? https://play.Google.com/store/apps/details?ID=org.Mozilla.firefox_beta
We have seen reports that this issue is resolved in Firefox Beta. Can you confirm?
-
I have some pictures that appear in iPhoto, but will not print not
I have some photos in iPhoto that look a little off, but when I try to print I get a screen print empty and I can not load one of these to the office or any other file
Wat version of iPhoto? IS - as you say the correct version for your operating system OS X 10.5.4? You can export of these (menu, file == > export) or change?
LN
-
I have some sort of bug which underlines the words randomly on a page, as is a link. When you put your mouse over it, it gives an add for Apple product. When you click on it you will be redirected to a Web site.
http://buyorbury.com/page/sur/sur-22/NL/winner-iPad.php?engsec=4See also
-
Hi, my iphone 5 have some problem in its port .i want to replace it, can someone tell me how much I spent on this iphone?
Apple will usually provide a replacement
You can check the cost here
-
Why have some of my credits of icons become bookmark, just a rectangle surrounded by a dashed line?
See:
-
If I sell my iPhone 6, indicating the error 53, for parts, should I worry about the person buying it have some sort of access to the personal data registered on this phone?
Hello error 53 matched a UN failure to the home button you had to replace the screen or the home button alone or outside apple store so if you replace the button man of origin and you restored the iPhone error will be fixed but if you sell the buyer has no access to the data of the iPhone
-
I have some PDf files on my computer and I want to add to my iPad
I have some PDf files on my computer and I want to add to my iPad, I add files to iTunes and they will only music and I cannot change them at the podcast or iTunes U format. I made some how manage to add to the iBooks on my phone app, but the print is so small and difficult to read. I try to add them to my iPad and can't do it. Any info is greatly appreciated.
Your Mac has the app iBooks on it (i.e. running Mavericks, Yosemite or El Capitan)? If it is then you add PDF files to iBooks (file > add to library) no iTunes - if you then connect the iPad to your Mac iTunes, they should then show on the tab 'books' selection and timing to the it
-
For the last 2 days, when I opened my Microsoft Solitaire Collection, the program opens and I'll click on one of the 5 games and as soon as the second 15 announcement is complete, a message appears that says: "we have some problems to connect to Internet to download Microsoft Solitaire Collection data...» ». What this mean and is there a way I can fix it?
I uninstalled the MS Solitaire Collection, then reinstalled from the store. Connected on the first try. The app itself is the problem.
-
I have some problem in my query to sql server. If I press f5 to run it opens to record dialogue area nd do not run (I don't get successful... orders etc). Please help me
Hello
SQL Server is not supported in these forums. I suggest that you ask your question again in one of the forums dedicated to Microsoft for him here:
http://social.technet.microsoft.com/Forums/en-us/category/sqlserver .
Thank you. :)
-
do Iolo's have some free antivirus avalibale to download?
do Iolo's have some free antivirus avalibale to download?
A good free antivirus for your Windows 7 is Microsoft Security Essentials. You can get it here:
Microsoft Security EssentialsNote that your PC must meet the system requirements:
Microsoft Security Essentials system requirements -
I have some photos that say they they'RE files. I can't do
Original title: cannot display files they'RE
I have some photos that say they they'RE files. I can't do?
Not sure how some of my pictues are filenames they'RE.
Is there a way I can change the JPG files to copy or viewing?
What is the origin of these files - they are pictures that you have transferred to the computer from the camera or they are files that you have created by changing a few other photos in programs like Lexmark Imaging Studio or Windows Movie Maker?
Search for files of type they'RE, I came across certain types of files that are related to the license of logging in a Windows service, which is not related to pictures of all ways. So, I think by looking at the information on your computer, these files have been created using an application. These files may have been renamed with this extensions added at the end of the name of the original file as well. We will check which called the complete folder for these files:
1. first, open the folder where these files are saved
2. then click on the Tools option in the menu on the top bar, and then click Folder Options. (If you don't see not the menu bar with the option tools, press Alt on the keyboard to see)
3. now click on the view tab, and then uncheck Hide extensions of known file types .
4. Finally, click apply and then OK.Now, highlight one of these files and let us know the name of full file with the extension of a file of this type.
Added to that, you can also consult the issue with Lexmark support upward once and see if their program uses this type of file in any means. Here is their support site:
Maybe you are looking for
-
HP Envy 13-d053sa: problem of HP Support Assistant
I recently bought this laptop with 10 months warranty still on it. HPSA introduced a message asking me if I wanted to download available updates, and I started the process. It was 'download' for two hours now, with no activity on wifi according to th
-
Where can I download FoxPro v2.6?
where can I download a copy of foxpro for windows 2.6?
-
How to format a drive which has Windows on it?
I accidentally installed Windows on two disks and I want to delete one of them, but he says that it cant format that pushes. Can you help me? EDIT: Sorry, I realized that I can not format the hard drive. Is it possible to change the main hard drive?
-
Comments to the devs and general FYI for other users. It seems that the release of Marshmallow to Z5 (compact in my case) has seen the reintroduction of old days of jelly bean bug. If the network does NOT support fast dormancy, then phone with her fo
-
All programs are open with Windows Media Center
It happened recently. Somehow, I put all my default programs be opened with Windows Media Center. Every program, I opened, Windows Media Center opens instead. An example would open Yahoo Messenger. It does not, on the contrary the fact Windows Media