How to check whether Java 3d is using hardware acceleration?
Hi
I just started looking into Java3d api. I am going through the tutorial examples. When I run it on Windows with JDK1.4.2, the app runs, but taskmanager shows cpu usage is around 55% of my 3GHz Intel processor.
I am sending the following VM parameters
-Djava.library.path=C:\progra~1\Java\Java3D\bin -Dj3d.rend=ogl -Dj3d.debug=true
I tried Direct3D as well by passing -Dj3d.rend=d3d. I don't see much difference in cpu usage. The sample I am playing is the one where you create a ColorCube and rotate it on a timeline. Pretty straight forward code taken from the tutorial.
I am wondering
a) Why is my cpu at 55% if it is using h/w acceleration?
b) Is there any way to find out whether Java is using software renderer vs h/w renderer.
I used sys internals processexp tool to look at the stack of java thread that is spinning the cube. I don't see any references to opengl or j3d dlls in the call stack.
I appreciate ur help.
Thanks
check this link, it queries the properties of your system:
http://download.java.net/media/java3d/webstart/test/QueryProperties.jnlp
Similar Messages
-
How to check whether calendar is being used in any of the sap application
Hello All,
We are having few factory calendars. However some of the calendar having valid to year 2010. Can you please let me know how to check whether these calendar is being used in any of the sap application/module
kindly reply as early as possible
Regards
GirishHi RKS
yesterday BLOG by our SUMMER WANG helps every SRM consultant to debug the PO error
/people/summer.wang/blog/2010/05/11/trouble-shooting-of-srm-po-transfer-error
Good work Summer wang !!
Muthu -
How to check whether java.sql.Connection has been dropped or not
Hi,
How can i check whether the connection is dropped from the database or not by using java.sql.Connection API.
ThanksThere's a few ways to check Connections, each with a different use:
(1) conn.isOpen()
(2) conn == null
(3) the last one is a little more involved and adds some overhead. You can run SELECT 1 FROM dual; (Oracle) or SELECT 1 (MSSQL) and check for exceptions.
The only way to check a connection, as far as I know, is to use it. That said, there must be a better way??? -
How to check whether database is in use or not
hi,
i have written a program for taking backup of database file(ACCESS).
i can able to zip it successfully, but i have to check before zipping that
whether it is opened or closed(using by any other).
How can i do it.I am not getting idea. please do help
Thanking you in advance
regards
shashiI don't know if this is possible. Since you have access to the file system and know the Access MDB location, look to see if the Access lock file exists. It's usually in the same location as the MDB and has the same name with an LDB extension
-
How to check whether a Document in KM is classified or not using JAVA API
Hello Everyone,
Can anyone tell me, How to check whether a Document in KM is classified or not, using JAVA API's??
Thanks & Regards,
Adren D'SouzaHi,
The code is as follows:
IIndexService indexService = null;
try {
indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
} catch (ResourceException e) {
if (indexService == null) {
log.errorT("Error on instanciating the index service");
return this.renderMessage(this.getBundleString(RES_NO_INDEX_SERVICE), StatusType.ERROR);
// get index
IIndex index = null;
try {
index = indexService.getIndex("YourIndexID");
} catch (WcmException e1) {
log.errorT("Error when trying to get the index");
return this.renderMessage(this.getBundleString(RES_NO_INDEX), StatusType.ERROR);
// check if the index is a instance of AbstractClassificationIndex
AbstractClassificationIndex classiIndex = null;
if (index instanceof AbstractClassificationIndex) {
classiIndex = (AbstractClassificationIndex) index;
} else {
log.errorT("The index " + index.getIndexName() + " is no classification index");
return this.renderMessage(this.getBundleString(RES_NO_CLASSIFICATION_INDEX), StatusType.WARNING);
//give your KM Resource here for which you want to know if it is classified or not
boolean classified = classiIndex.isDocClassifiedInAnyTax(resource);
Regards,
Praveen Gudapati -
How to check Whether the File is in Progress or used by some other resource
Hi All,
I am retrieving a file from the FTP server using Apache commons FTP.
I need to check whether the file is fully retrieved or in progress.
for now i can able to use the file which is partially retrieved. it is not throwing any file sharing exception or i am unable to find whether it is in progress.
How to check whether the file is in progress ? or The file is accessed by some other resource ?
Pls Help me.
Thanks,
J.KathirHi Vamsi,
Explicitly such kind of requirement has not been catered and i dont think you would face a problem because any application that is writing to a file will open the file in the read only mode to any other simultaneous applications so i think your concerns although valid are already taken care off .
In the remote case you still face a problem then as a work around. Tell the FTP administrator to set the property to maximum connections that can be made to ftp as one. I wonder if you have heard of the concept of FTP handle , basically the above workaround is based on that concept itself. This way only one application will be able to write.
The file adapter will wait for its turn and then write the files.
Regards
joel
Edited by: joel trinidade on Jun 26, 2009 11:06 AM -
HOw to check for the Child Elements USing only SAX Parsr?
HI Guyz,
How to check whether there are any Child Elements in an XML file using ONLY SAX parser ??? I have a requirement of checking first whether there is any Child Elements exists for a Element or not and based on that I have to take certain actions. Can anyone suggest me How to do that ???
Thanx
KKSince SAX is event controlled, you wont know if there's a child element unless you actually bump into it with the Parser. You'll simply get another startElement event after your current one.
/Tom -
How to check whether the Application Server directory exits or not
Hi,
I have a selection screen in which I give the Application server file name(UNIX file) as input. Here, I would like to check whether the Server directory exists or not.
Let us say, the path I gave in the selection screen is /usr/sap/tmp/testfile.txt . Here, the file name is testfile.txt and the server directory is /usr/sap/tmp . I would like to check whether this directory /usr/sap/tmp exists in the server or not. I am not bothered about the file name as I am going to write data into the file. I am mainly concerned about whether the directory exists in the server or not. and one more thing... this is the Application Server path not the Local path.
Can anyone help me on the same how to check whether the server directory exists or not.
Thanks in advance.
Best Regards,
Pradeep.Also you can use the FM EPS_GET_DIRECTORY_LISTING for this purpose.
Store the directory name
l_dpath = p_file+0(l_no).
Validate the directory of the application server
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
EXPORTING
dir_name = l_dpath
TABLES
dir_list = l_i_dlist
EXCEPTIONS
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
OTHERS = 8.
If any problem occurs with the directory then display proper
error message
IF sy-subrc <> 0.
Display error message
MESSAGE e018 WITH 'Problem with directory entered'(008).
ENDIF. " sy-subrc <> 0
Regards,
Joy. -
How to check whether system privilege are granted
How to check whether system privileges like 'create session' and other ones are granted for user.
Is there any sys table where this information is available?
Regards - NeuronKeep in mind select * from dba_sys_privs where grantee = 'some-user' will give you a list of privileges granted to some-user directly. To get complete list of system privs granted to a user both directly an via roles use:
ACCEPT USER PROMPT 'Please enter user name: '
COLUMN PATH FORMAT A90
SET LINESIZE 132
SELECT PATH,
PRIVILEGE
FROM DBA_SYS_PRIVS,
SELECT 'DIRECT GRANT' PATH,
'&USER' GRANTED_ROLE
FROM DUAL
UNION ALL
SELECT LTRIM(SYS_CONNECT_BY_PATH(GRANTED_ROLE,'->'),'->') PATH,
GRANTED_ROLE
FROM DBA_ROLE_PRIVS
START WITH GRANTEE = UPPER('&USER')
CONNECT BY PRIOR GRANTED_ROLE = GRANTEE
WHERE GRANTEE = GRANTED_ROLE
/Now on top of privileges granted to a user, user also has privileges granted to PUBLIC. To get privileges user receives via PUBLIC run the above script specifying PUBLIC at the prompt.
SY. -
How to check whether any table(s) required to shrink on database
Hi,
How to check whether any table(s) required to shrink on database
Regards,
VenkatVenkat wrote:
Hi,
Thi is Oracle 10g. How to use this?. I am not using toad etc...
I am on SQL prompt.
Regards,
Venkat.
for starter
Generate Script to Shrink Segment Advisor Recommendations [ID 1171054.1]
Automatic Segment Advisor in Oracle 10g Release 2 (10.2) [ID 314112.1]
10g and above SEGMENT ADVISOR [ID 242736.1]
Cheers -
How to check whether stock cover MRP requirements
Hi Everybody,
Could you please tell me how to check whether stock cover MRP requirements?
My user hope to block GR for PO. Because before GR, customer decrease their order qty. However, it is difficult if buyer decrease the PO qty manually. So, they hope SAP can calculate and block GR.
I know we can add the control in user exit of MIGO. However, I dont know how to check the stock whether cover MRP requirements. anybody can tell me what is the standard function? of course, it is okay if you have other solution such as via standard configurations.
Thank you in advanced.
Regards
HenryHello Ravi,
Thank you for your reminder.
We have double confirmed with our client. It is very difficult to using Scheduling Agreements instead of PO. because lots of job have to be changed such as
1. Share our Scheduling Agreements with suppliers on a new system such as Internet.
2. PO release strategy will be put into Scheduling Agreements. I dont know how to to reach this.
Customer may random decrease their order Qty even if they have sent formal order to us. So, we have to block GR for our supplier even if sent PO already. In OEM industry, it is truth already.
Hello BK,
I know in MD04, we can manually list. But, please tell me which function (SE37) can identify. We hope can call the function in user exit of MIGO.
Regards
Henry -
How to check whether campaign has been uploaded to online server
Hi,
How to check whether campaign has been uploaded to online server by using SQL analyzer
Thanks,
RasheedHi Rasheed,
To quickly check if the campaign has been uploaded from MSA to the server, you can check the TR_STATUS column on the SMOPCCAMPN table for your campaign, if the value is P000 or P*** then it has been uploaded to the server and is waiting for confirmation, if the status is O, it has been uploaded and created in the server.
Best Regards,
Ankan -
How to check whether a file exist in the program folder or not?
Hi guys,
how to check whether a file exist in the program folder or not? Let is say i recieve a file name from user then i want to know if the file is there not and act on that base.
abdulLook at the class java.io.File and the .exists() method:
http://java.sun.com/j2se/1.4/docs/api/java/io/File.html -
How to check whether Output ES is working or not.
I am able to see Output ES in the services list of the admin console of my server. Please let me know how to check whether this is working or not.
Regards,
ShabeerLiveCycle ES2 (and LiveCycle ES) ship with three undersold and unadvertised web applications that are VERY useful. Each is referred to as an Installation Verification Sample (or IVS) but they are great testing tools you can use during development and QA. There is
1) Assembler IVS,
2) Forms IVS, and
3) Output IVS
Output IVS looks like this...
The pattern for deploying and using all three IVSs is very similar as what I am about to describe for Output IVS. The following directions apply to the JBoss turnkey on Windows.
1) go to C:\Adobe\Adobe LiveCycle ES2\deploy and locate adobe-output-ivs-jboss.ear
2) copy adobe-output-ivs-jboss.ear to C:\Adobe\Adobe LiveCycle ES2\jboss\server\lc_turnkey\deploy
3) if necessary, start LiveCycle
4) open a browser and go to http://localhost:8080/OutputIVS/
5) click Check/Change your preferences
6) add Admin Credentials
7) click Save
8) click Test your form designs
9) Select an .xdp from Form designs
10) Click Use EJB (or Use Web Service if you feel so inclined) to invoke LiveCycle Output ES2
Steve -
How to check whether ESBAgentListener listener is started or not for ESBSys
Hi,
I am working on Oracle ESB 10g, I want to know how to check whether the ESBAgentListener listener is started or not for particular ESB system. I know we can verify the logs but I want to know is it possible from database or any other sources.
Thanks in advance.
RameshHi Jogdand ,
You can get the PO total value change form the PO business Object BUS2201 attribute POTotalValueIncreased .
Below code sample decribes how to get the BO attribute values
1. INCLUDE <swfcntn01>.
2. Create an instance of the BO by calling the macro and passing the three parameter.
swf_create_object <po bor object> <BUS2201> <po_guid>
3. Get the PO attribute by calling macro
swf_get_property <po BOR object> < 'POTotalValueIncreased' > < lv_pototalvalueincreased>
OR
You can query the table BBP_PDHGP and get the original Value of the PO and call the FM BBP_PD_PO_GETDETAIL to get the new Value of the PO. Check the difference and if there is any difference then the PO value is changed.
I hope this will be very useful.
Regards,
Surender
Maybe you are looking for
-
How to reference a parent element in Excel Templates
I am using an excel template and I have nested groupings of xml that I wish to flatten, for example: <G_DEPT> <DEPARTMENT_ID>10</DEPARTMENT_ID> <DEPARTMENT_NAME>Administration</DEPARTMENT_NAME> <LIST_G_EMP> <G_EMP> <EMPLOYEE_ID>200</EMPLOYEE_ID> <EMP
-
How to create the pricing procedure for domestic & import.
HI, Pls any body let me know how to create the pricing procedure for domestic & import. what is the use of the keys step condiiton condition type from to manual required statistic subtotal requirement caltype basetype. how system will work b
-
HT204053 Multiple ID's - change into one?
I have a MobileMe/iCloud ID and also a separate Apple ID. How can I change them so that I only have one ID for both iCloud and Apple ID - for accessing iTune and ourchasing Apps?
-
I have an MBA with 256 GB SSD. Updated to Mavericks including iMovie 10 (which filled the disk during conversion of iMovie 9 files). Just checked Time Machine for possible restore and found, that the content is missing! The only directories are "User
-
How to add data in IT 184 through portal.
Hi Experts, I want to add data in IT 184 . I am adding the project description of an employee in this IT type. I will provide the link on portal to add the data in this infotype by it is not possible for me to update the data. Please guide me. Thanks