Rendering diagnostics - all red despite setting caching
I'm going mad with this...
I'm setting <renderMode>gpu</renderMode> in the app xml file.
I'm setting .cacheAsBitmap = true and .cacheAsBitmapMatrix = new Matrix()
Still, everywhere in the app, everything that changes has a red overlay, even textfields, when change, have a red rectangle over them even though I didn't set bitmap caching for them.
Overall it looks exactly like the "Show redraw regions" in the debug player. Does it mean that GPU is not being used? If so, why?
This is an iPad app. I'm also working on an iPhone app and there caching works just fine.
Obviously, I'm doing something wrong. Has anyone experienced anything similar and could point me in the right direction?
hi did you read mike chamber's FITC presentation... maybe some of this will help
http://www.mikechambers.com/blog/files/presentations/fitc_amsterdam_2010/flash_iphone_fitc _2010.pdf
specifically...
Prevent Redraws:
• Items moving over non-cached DisplayObjects
• Visual content changes
• Drawing API
• Children moving / changing
• ColorTransformations
• Removing from display list
Similar Messages
-
All reds are rendered a rust color in Photoshop, but look fine in other programs.
All reds are rendered a rust color in Photoshop, but look fine in other programs.
Can you please post screenshots so we can get a better understanding of your problem?
Thanks,
Julia -
HT204053 Despite setting up iCloud on my iPhone and iPad can't access all Contacts
Why am I unable to access contacts in my iPad from my iPhone despite setting up iCloud?
Yes. Access via a browser, without the app, can only be done from a Mac or a PC, not an iOS device.
-
Rendering diagnostics not working in AIR 2.6
I'm trying to move my pfi application over to AIR 2.6 and am experiencing a huge drop in frame rate. I worked quite hard to make sure everything was cached with the GPU when working with pfi and found the rendering diagnostics to be invaluable in helping me nail down areas where the graphics weren't being cached properly. I thought I would check to make sure that the graphics are still being cached in AIR 2.6 but when I built the application with the flag enabled, the rendering diagnostics didn't turn on. The flag is CTTextureUploadTracking and is part of the application xml:
<InfoAdditions>
<![CDATA[
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackOpaque</string>
<key>UIRequiresPersistentWiFi</key>
<string>NO</string>
<key>UIDeviceFamily</key>
<array>
<string>1</string>
<string>2</string>
</array>
<key>CTTextureUploadTracking</key>
<true/>
]]>
</InfoAdditions>
I also tried adding the -renderingdiagnostics flag to the command line as indicated in http://download.macromedia.com/pub/labs/packagerforiphone/packagerforiphone_devguide.pdf but I get an error telling me that "The -renderingdiagnostics flag is no longer supported". Does anyone know how to enable this now?If Adobe ever wants developers to properly utilize the GPU then a tool like rendering diagnostics needs to exist. Flash has a terrible stigma of being a processor hog, slow and glitchy. Flash doesn't need to be like this but lots and lots of sloppy coding have helped this become what people perceive as reality. Even if 2.7 is leaps and bounds above 2.6, if no one can properly figure out how to keep data cached with the gpu then Flash apps will still be slow, battery hogs. A visual troubleshooting tool for gpu caching problems is really essential. If it hadn't been for that I would never have been able to figure out some of the bizarre quirks in caching. For instance, if you have an opaque background in a Sprite and you add something to it as a child, the gpu will never be able to cache either of them correctly. Why? I don't know, it doesn't make sense but the rendering diagnostics helped me find the problem quickly. Please add this tool or something like it back in. You're doing your devs a serious disservice and, consequently, helping push the idea that Flash is a technology that is no longer relevant.
-
Dynamic spelling in IDCS3 - some docs come in all red-lined
Hi there. I just had this issue pop up recently, now it is popping up in several docs I'm importing for a publication. I import the docs and they come in completely all red-lined as if every word is spelled wrong.
When it happened on a previous doc, it was a short letter and I just went in and manually took out the space between each word and put in a new space and that solved it.
Even that is not working this time.
Most of these docs are .docx but not all. It seems to be happening on all of them this time. I did put on the .docx converter recently, probably since the last time I encountered this.
I'm trying to see if there is a specific way I need to import the files? Do I need to resave them in a different Word setting? I tried several and the only one that worked was .txt but that definitely removes all formatting.
If anyone has encountered and resolved this mystery, I'd love to know the answer. Surely there are others out there who have encountered it also.
Thanks.
--KellieWhere do you see that definition? Your prefs don't count.
Highlight all the text and check the character panel.
Bob -
Firm Redirect with Set Cache Batch Updates or regular Expressions mapping?
Hello everybody,
I use the Sun Java Web Proxy as a Reverse Proxy. I want that the Proxy takes a special css-File only from a special server.
for Instance: example.css should be taken from http://server.domain.com/static/example.css
Should I use the "Set Cache Batch Updates" in the Caching-Tab or should I create a regular Expression mapping? In second case, how could the Expression looks like (SUN regular expressions are a different from normal - as I know)?
Thank you for help.
Greetings
JohannesThe regexpr. could be "http://.*/tud\\.css
But is such a redirect possible at all?
Please help me. I am a little bit helpless.
Thanks
InfoSeeker09 -
I cannot sync my Notes between my ipad, my iphone and my mac, despite setting Notes to sync with iCloud. Any Suggestion?
perfect. ok do the following:
settings > mail, contacts, calendars > go into the exchange account. You should have an email in the account field...[email protected] or [email protected], etc.... I am assuming you don't remember the password to this exchange account so once you know the email, you can go to email providers site and click on forgot password and you will go through the steps to get a new password. Once you do this, you will need to go back into your "exchange account " and the field that has the exchange email > touch the > to open settings. Change the password to your new password you got from above. Once you do this, you can add the exchange account to your ipad and all of your contacts will sync to both devices.
Please confirm. -
I've just added a 7914 to a working installation with 7960 phones.
The 7914 is stuck with all red lights on, and the Expansion Module Stats in the phone menu says "Link State: Not Supported"
The 7914 is showing in the UC560 as 7960/14 and the graphic is correct. (i.e. it shows a 7960 with one 7914 attached)
The phone is set up as a teleworker phone/extension mobility. Does this matter?
The UC560 is not yet updated to 8.6.0, it's running the previous firmware.
Any ideas of what I can do to make this work? The relevant ephone config is below:
ephone 8
device-security-mode none
mac-address 0003.E36X.XXXX
ephone-template 16
type 7960 addon 1 7914
logout-profile 1Hi Shane,
First check if you have the 7914 firmware on the UC500.
Next, you maybe have to manually specify the load statements in the cli. This is what I had to do to get 7916 to start registering and downloading firmware. I found the answer on this thread:
https://supportforums.cisco.com/message/3083380#3083380
After you manually specify the loads for 7914 you have to reboot you 7960 few times until the 7914 picks up the download of the firmware.
Try this, or maybe you have a different problem.
Cheers, -
Hello,
I try to get the client side result set cache working, but i have no luck :-(
I'm using Oracle Enterprise Edition 11.2.0.1.0 and as client diver 11.2.0.2.0.
Executing the query select /*+ result_cache*/ * from p_item via sql plus or toad will generate an nice execution plan with an RESULT CACHE node and the v$result_cache_objects contains some rows.
After I've check the server side cache works. I want to cache the client side
My simple Java Application looks like
private static final String ID = UUID.randomUUID().toString();
private static final String JDBC_URL = "jdbc:oracle:oci:@server:1521:ORCL";
private static final String USER = "user";
private static final String PASSWORD = "password";
public static void main(String[] args) throws SQLException {
OracleDataSource ds = new OracleDataSource();
ds.setImplicitCachingEnabled(true);
ds.setURL( JDBC_URL );
ds.setUser( USER );
ds.setPassword( PASSWORD );
String sql = "select /*+ result_cache */ /* " + ID + " */ * from p_item d " +
"where d.i_size = :1";
for( int i=0; i<100; i++ ) {
OracleConnection connection = (OracleConnection) ds.getConnection();
connection.setImplicitCachingEnabled(true);
connection.setStatementCacheSize(10);
OraclePreparedStatement stmt = (OraclePreparedStatement) connection.prepareStatement( sql );
stmt.setLong( 1, 176 );
ResultSet rs = stmt.executeQuery();
int count = 0;
for(; rs.next(); count++ );
rs.close();
stmt.close();
System.out.println( "Execution: " + getExecutions(connection) + " Fetched: " + count );
connection.close();
private static int getExecutions( Connection connection ) throws SQLException {
String sql = "select executions from v$sqlarea where sql_text like ?";
PreparedStatement stmt = connection.prepareStatement(sql);
stmt.setString(1, "%" + ID + "%" );
ResultSet rs = stmt.executeQuery();
if( rs.next() == false )
return 0;
int result = rs.getInt(1);
if( rs.next() )
throw new IllegalArgumentException("not unique");
rs.close();
stmt.close();
return result;
100 times the same query is executed and the statement exection count is incemented every time. I expect just 1 statement execution ( client database roundtrip ) and 99 hits in client result set cache. The view CLIENT_RESULT_CACHE_STATS$ is empty :-(
I'm using the oracle documentation at http://download.oracle.com/docs/cd/E14072_01/java.112/e10589/instclnt.htm#BABEDHFF and I don't kown why it does't work :-(
I'm thankful for every tip,
André KullmannI wanted to post a follow-up to (hopefully) clear up a point of potential confusion. That is, with the OCI Client Result Cache, the results are indeed cached on the client in memory managed by OCI.
As I mentioned in my previous reply, I am not a JDBC (or Java) expert so there is likely a great deal of improvement that can be made to my little test program. However, it is not intended to be exemplary, didactic code - rather, it's hopefully just enough to illustrate that the caching happens on the client (when things are configured correctly, etc).
My environment for this exercise is Windows 7 64-bit, Java SE 1.6.0_27 32-bit, Oracle Instant Client 11.2.0.2 32-bit, and Oracle Database 11.2.0.2 64-bit.
Apologies if this is a messy post, but I wanted to make it as close to copy/paste/verify as possible.
Here's the test code I used:
import java.sql.ResultSet;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import oracle.jdbc.pool.OracleDataSource;
import oracle.jdbc.OracleConnection;
class OCIResultCache
public static void main(String args []) throws SQLException
OracleDataSource ods = null;
OracleConnection conn = null;
PreparedStatement stmt = null;
ResultSet rset = null;
String sql1 = "select /*+ no_result_cache */ first_name, last_name " +
"from hr.employees";
String sql2 = "select /*+ result_cache */ first_name, last_name " +
"from hr.employees";
int fetchSize = 128;
long start, end;
try
ods = new OracleDataSource();
ods.setURL("jdbc:oracle:oci:@liverpool:1521:V112");
ods.setUser("orademo");
ods.setPassword("orademo");
conn = (OracleConnection) ods.getConnection();
conn.setImplicitCachingEnabled(true);
conn.setStatementCacheSize(20);
stmt = conn.prepareStatement(sql1);
stmt.setFetchSize(fetchSize);
start = System.currentTimeMillis();
for (int i=0; i < 10000; i++)
rset = stmt.executeQuery();
while (rset.next())
if (rset != null) rset.close();
end = System.currentTimeMillis();
if (stmt != null) stmt.close();
System.out.println();
System.out.println("Execution time [sql1] = " + (end-start) + " ms.");
stmt = conn.prepareStatement(sql2);
stmt.setFetchSize(fetchSize);
start = System.currentTimeMillis();
for (int i=0; i < 10000; i++)
rset = stmt.executeQuery();
while (rset.next())
if (rset != null) rset.close();
end = System.currentTimeMillis();
if (stmt != null) stmt.close();
System.out.println();
System.out.println("Execution time [sql2] = " + (end-start) + " ms.");
System.out.println();
System.out.print("Enter to continue...");
System.console().readLine();
finally
if (rset != null) rset.close();
if (stmt != null) stmt.close();
if (conn != null) conn.close();
}In order to show that the results are cached on the client and thus server round-trips are avoided, I generated a 10046 level 12 trace from the database for this session. This was done using the following database logon trigger:
create or replace trigger logon_trigger
after logon on database
begin
if (user = 'ORADEMO') then
execute immediate
'alter session set events ''10046 trace name context forever, level 12''';
end if;
end;
/With that in place I then did some environmental setup and executed the test:
C:\Projects\Test\Java\OCIResultCache>set ORACLE_HOME=C:\Oracle\instantclient_11_2
C:\Projects\Test\Java\OCIResultCache>set CLASSPATH=.;%ORACLE_HOME%\ojdbc6.jar
C:\Projects\Test\Java\OCIResultCache>set PATH=%ORACLE_HOME%\;%PATH%
C:\Projects\Test\Java\OCIResultCache>java OCIResultCache
Execution time [sql1] = 1654 ms.
Execution time [sql2] = 686 ms.
Enter to continue...This is all on my laptop, so results are not stellar in terms of performance; however, you can see that the portion of the test that uses the OCI client result cache did execute in approximately half of the time as the non-cached portion.
But, the more compelling data is in the resulting trace file which I ran through the tkprof utility to make it nicely formatted and summarized:
SQL ID: cqx6mdvs7mqud Plan Hash: 2228653197
select /*+ no_result_cache */ first_name, last_name
from
hr.employees
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 10000 0.10 0.10 0 0 0 0
Fetch 10001 0.49 0.54 0 10001 0 1070000
total 20002 0.60 0.65 0 10001 0 1070000
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 94
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
107 107 107 INDEX FULL SCAN EMP_NAME_IX (cr=2 pr=0 pw=0 time=21 us cost=1 size=1605 card=107)(object id 75241)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 10001 0.00 0.00
SQL*Net message from client 10001 0.00 1.10
SQL ID: frzmxy93n71ss Plan Hash: 2228653197
select /*+ result_cache */ first_name, last_name
from
hr.employees
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.01 0 11 22 0
Fetch 2 0.00 0.00 0 0 0 107
total 4 0.00 0.01 0 11 22 107
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 94
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
107 107 107 RESULT CACHE 0rdkpjr5p74cf0n0cs95ntguh7 (cr=0 pr=0 pw=0 time=12 us)
0 0 0 INDEX FULL SCAN EMP_NAME_IX (cr=0 pr=0 pw=0 time=0 us cost=1 size=1605 card=107)(object id 75241)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
log file sync 1 0.00 0.00
SQL*Net message from client 2 1.13 1.13The key differences here are the execute, fetch, and SQL*Net message values. Using the client-side cache, the values drop dramatically due to getting the results from client memory rather than round-trips to the server.
Of course, corrections, clarifications, etc. welcome and so on...
Regards,
Mark -
I've done everything I know in order to get my calendar in iCloud synchronized with my macBook, my IPad and my iPhone, but get no success. I've checked if all devices are set to the same account. Can you help me?
The only thing I can see strange is that when I login my iCloud account through my principal email address, when I check my preferences is marked an @me.com address that is old and I don't use it anymore, but I can't erase it or even change it.
-
how can i connect iphone to itunes.. i want to restore because my finger mistakes that click Reset all content and setting.. so iphone are empty.. all foto and data lost, right.. how can i use my iphone again.
Yes, try to restore your iPhone from iTunes or iCloud backup.
iOS: How to back up and restore your content
http://support.apple.com/kb/HT1766
Tell us the result if you will try.
<Link Edited By Host> -
how can I check my passcode I updated today and when I am going to reset all content and setting my iPhone 4S they asked me for passcode when I entered the passcode the one I just update too is doesn't want to accept it
I have had the same problem with iPad recently not too sure why it happened but if you are completing a full reset anyway the easiest way is the restore via itunes on your computer and then set up a new passcode again. Resetting via itunes doesnt require a passcode so it should go straight through.
Hope this helps -
How to check the status of all of the current cache listeners
Hi,
Is there a way to programmatically show the status of all of the registered cache listeners?
The background is that we found only one user (among around 20 users) always stops receiving the events from the cache. However the tcp connection to the proxy server is always alive. We are using .NET client.
Please provide any suggestions on this issue.
Thanks
MuIs there a way to programmatically show the status of all of the registered cache listeners?Not easily. The listeners are managed in a hierarchical manner, so each storage-enabled server keeps track (e.g. per partition) what listeners it has to notify of what events, and each proxy keeps track (e.g. per connection) of what clients it has to notify of what events, and on the client it keeps track of what listener objects it has to deliver what events to. At each level in the hierarchy, there is a data structure that keeps track of this information, and that data structure will typically be an instance of com.tangosol.util.MapListenerSupport. While it is theoretically possible to navigate these data structures at any level of the hierarchy, it's not straight-forward.
The background is that we found only one user (among around 20 users) always stops receiving the events from the cache. However the tcp connection to the proxy server is always alive. We are using .NET client.It sounds like the client is getting disconnected at some point. To eliminate the obvious (e.g. an event listener getting stuck and never returning), take a thread dump of the .NET process, e.g.
http://support.microsoft.com/kb/286350
Next, add the listeners on the client side for the MemberLeft events. If the client does get disconnected, it should get that event.
Also, turn up the logging level on the proxies (to at least D6) and check the logs when this happens.
I'd also suggest that you file an SR with Oracle support to track this.
Peace,
Cameron Purdy | Oracle Coherence
http://coherence.oracle.com/ -
so my Ipod touch hasn't been connecting to computer, nor charging for a week or two until i turn it off completely and now i try to reset all content and setting,(thinking it may connect to the computer and itunes and also charge) but the circle goes round and round for like hrs(24) and it still does not complete the reset.
pls pls pls pls help .
i have tried alot of solutions, but non of them have worked.Have you tried walking it into the nearest Apple Store and asking for assistance there...?
I'm guessing you don't have Apple Care on it. -
I have an iPhone 4s, but wifi the option is greyed out. The wifi stopped working on it months ago. Now I wanted to erase all content and setting from my old 4s and it will not connect to the internet, because the cellular data is no longer connected, since I bought a new iPhone 5c. I can't erase my phone by pluggin it into my Macbook Pro, since I can't disable the "Find my iPhone" App without internet. How do I erase all the data and setting on my 4s without connecting to the internet? It is running ios 7
See this https://answers.yahoo.com/question/index?qid=20131119125513AAtRloc
I just did it. To enter DFU mode, I had to use "method 3" on this post
http://thebigboss.org/guides-iphone-ipod-ipad/dfu-mode
Too bad my 4S is 2 years old. Wifi is dead. I had to upgrade to 5S, but 5S is soooooo much faster than 4S so it's kind of good outcome. Without the 4S breaking down, a stingy person like me would have never upgraded the phone.
Maybe you are looking for
-
HP Pavilion dv7-6c09tx windows 8.1 pro issues
Hello! I've just decided to upgrade my HP Pavilion dv7-6c09tx Entertainment Notebook PC to Win 8.1 pro.. Bit of an effort to say the least! Installed all drivers here: http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4132&lc=en&cc=au&dlc=en&sw_
-
If I have converted my purchased iTunes songs to a lower bit rate what will happen when I join iTunes match? Will they match up or will these be stored as duplicates of the same song? I ask because I primarily use my work laptop which has limited spa
-
WLS 8.1 - Entity Beans CMP - Oracle 10g Audit Tool
Hi, We are defining the architecture of a new application on WebLogic Server 8.1 and Oracle 10g. We are thinking in using CMP Entity Beans and we need to integrate our system with Oracle Audit Tool. Can anybody give us some information about this iss
-
Upgraded outdoor 1310G bridge from Autonomous to LWAPP
I recently got a pair of outdoor 1310G bridge radios to create a bridge. I upgraded one of the APs from Autonomous to LWAPP so that it could connect to our 4402 controller so that it could be monitored and controlled by it. Everything looks like it u
-
dpc@empire:~$ sudo pacman -S gajim Targets: gtkspell-2.0.11-1 dnsutils-9.3.3-1 docbook-xml-4.1.2-2 libglade-2.6.0-1 python-numeric-24.2-1 pycairo-1.2.2-1 pygobject-2.12.2-1 pygtk-2.10.3-1 sqlite3-3.3.8-1 python-pysqlite-2.3.2-1 gajim-0.10.1-2 Total P