Skip to main content

render speed

3 replies [Last post]
jcmeira
Offline
Joined: 2003-08-02
Points: 0

Is there any project for increment render speed?.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sat1196
Offline
Joined: 2003-11-08
Points: 0

I agree,

One way I'd like to see this happen is by using java.nio. For example, if you have code that reads from jni into a direct nio Buffer, there's no (efficient) way to create an Image from that Buffer without copying it into a primitive array. I'd like to see this feature added to mustang. There are lots of situations in multimedia where nio could be useful jmf, javasound. It eases greatly endian conversion, or converting from primitive types for example. I'd like to see a way to create a BufferedImage from a java.nio.ByteBuffer or javax.sound.sampled.AudioInputStream implement a [code]getInputChannel()[/code] method and [code]javax.sound.sampled.SourceDataLine [/code]implement [code]getOutputChannel().[/code]
So that for example I can get data in little-endian format, do my operations in big-endian and output back in big-endian.

An other example is jmf. Rather than writing a codec that can only handle short[] for example, I could write a codec that uses ShortBuffer. If the preceding codec uses ByteBuffer, no need to convert things manually, just use asShortBuffer().
I think it would make the API more coherent if use Buffers everywhere you use primitive arrays, just like you can use CharSequence everywhere String is used.
What do other people think about it ?

cowwoc
Offline
Joined: 2003-08-24
Points: 0

+1

This is a good idea, but not at the top of my priority list. I'd prefer working on Webstart and other visible "Java on the desktop" issues rather than stuff that happens behind the scenes. With the exception of games (which are darn cool, don't get me wrong) I find Java imaging performance to be quite satisfactory for now.

Gili

cowwoc
Offline
Joined: 2003-08-24
Points: 0

I'm not sure I understand the question. What do you mean by increment render speed?

Gili