BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-21-2009, 08:46 PM   #1
Singular
New Member
 
Join Date: Jan 2009
Model: 8130
PIN: N/A
Carrier: tmobile
Posts: 2
Default Invalidate(x,y,w,h)

Please Login to Remove!

Hey all,

Recently started doing some blackberry development, specifically a game, and have this question (JDE 4.5):

If I do not want to repaint the entire screen, apparently invalidate is supposed to work with regions of the screen vs the entire screen if so desired.

This seems to work, but I cannot seem to "chain" invalidates together.

The reason I want to do this is to do dirty updating of the screen for efficiency reasons, but the implementation of invalidate seems to take the minimum x,y, and maximum x,y and paint the entire region, instead of the single regions I specify. Not sure if that makes sense, but it probably would to someone who has done this before.

Also, is there a way to reliably render to the screen without having to rely on the message pump calling paint?

Cheers,
Offline  
Old 01-22-2009, 04:13 AM   #2
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

don't you use fields or managers? you can invalidate them one by one. other then that you will have to call it multiple times. i don't know how this influences performance, should be fairly low level.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 01-30-2009, 05:58 PM   #3
Singular
New Member
 
Join Date: Jan 2009
Model: 8130
PIN: N/A
Carrier: tmobile
Posts: 2
Default

No, I don't. I use a FullScreen object that currently invalidates the entire screen every time there is a "Heartbeat" event in the game engine.

Dirty updating is usefull in application where the actual displaying of graphics is the bottleneck, as it traditionally improves frame-rate, at the expense of forcing the application to keep track of what areas of the screen need to be updated. I've proven to myself that selectively updating dirty of the screen will yield up to 50 FPS on my Curve. Unfortunately, I seem to be limited in what will invalidate when I call invalidate multiple times, as it does not perform as expected.

Thanks
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Johnson Controls Metasys MS-NAE5510-1 picture

Johnson Controls Metasys MS-NAE5510-1

$149.99



Johnson Controls Metasys MS-NAE5521-1 picture

Johnson Controls Metasys MS-NAE5521-1

$150.00



Johnson Controls Metasys MS-VMA 1610-0 Variable Air Volume Controller / WARRANTY picture

Johnson Controls Metasys MS-VMA 1610-0 Variable Air Volume Controller / WARRANTY

$200.00



Johnson Controls Metasys CVE03050 controller.     M4-CVE03050-0P (NEW) picture

Johnson Controls Metasys CVE03050 controller. M4-CVE03050-0P (NEW)

$300.00



Johnson Controls Nu-ncm350-8 Metasys Network Controller picture

Johnson Controls Nu-ncm350-8 Metasys Network Controller

$299.88



ACROMAG 4683-TTM-3F RS-485 to RS-485 Network Repeater BACnet Metasys NEW picture

ACROMAG 4683-TTM-3F RS-485 to RS-485 Network Repeater BACnet Metasys NEW

$199.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.