🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8092

Blitting Efficiently In Java...

#8092
From: Benn Herrera
Date: Mon, 23 Oct 2000 00:00
32 lines
1514 bytes
Hello -

I am working on a hybrid Java GUI/C++ back end application and have run
into
a major performance snag.  The C++ shared library I am accessing through
JNI
does 3D rendering to an image buffer provided by from the Java side.
The rendered buffer
is then displayed in a JPanel via the method drawImage.

The blitting is terribly slow.  Using the same shared library with a
native front end, I get
interactive speeds of 5-8 frames per second.  With the Java front end
i'm getting
2-3 frames per second.

The color model I'm using is one that should not require any sample
conversion
in order to match up with the display device.

Any hints?  Is there a known most-efficient way of blitting an image
buffer in Java?

Thanks much!

-Benn

--
Benn Herrera - Senior Software Engineer / Computing Operations
Resolution Sciences Corporation - http://www.resolve3d.com
527 Tamal Plaza, Corte Madera, CA 94925
T:415/945-7360xt27  F:415/945-7905  E:benn@resolve3d.com
Technical Details
Message-ID: <39F4845E.6702B997@resolve3d.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,bd9a64f743802bd9,start
X-Google-Attributes: gid111d45,public
From: Benn Herrera <benn@resolve3d.com>
Subject: Blitting Efficiently In Java...
Date: 2000/10/23
Message-ID: <39F4845E.6702B997@resolve3d.com>
X-Deja-AN: 684914021
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 23 Oct 2000 11:22:51 -0800, 208.176.155.25
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing