Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[JNI] Need fast way to access native array
- From: bill@xxxxxxxxxxxxx (Bill Tschumy)
- Subject: [JNI] Need fast way to access native array
- Date: Wed, 27 Dec 2000 10:28:32 -0600
I am working on some Java code that needs to gain quick access to a native C array. The native code is generating the array which represents an animated image. The Java code needs to access this code to display it on screen. I have tried using the JNI call SetIntArrayArrayRegion(...) to copy the bits to a Java int array, but this is painfully slow. The image is a full screen display and the copying it takes around 1 to 2 seconds. I ideally need to display around 5-10 fps. I know I've seen various Java based 3-D animation packages that use native code for their rendering. They seem to be getting much better throughput. Is there some other API call I should be using? Thanks for any help you can give. Bill -- Bill Tschumy Otherwise -- Austin, TX bill@xxxxxxxxxxxxx --- To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
- Follow-Ups:
- [JNI] Need fast way to access native array
- From: Paul Mclachlan
- [JNI] Need fast way to access native array
- From: David Chase
- [JNI] Need fast way to access native array
- Prev by Date: JAVA???
- Next by Date: jdbc-URGENT!!!!!!
- Previous by thread: JAVA???
- Next by thread: [JNI] Need fast way to access native array
- Index(es):