🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Blitting Efficiently In Java...

#8098
From: John McGrath TeamB
Date: Tue, 24 Oct 2000 00:00
32 lines
1701 bytes
On Mon, 23 Oct 2000 11:33:02 -0700, Benn Herrera wrote:

> 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.


Java's display mechanisms are fast enough for many applications, but it 
may be that they are not capable of displaying at the frame rates you 
need.

One solution you might look at is the AWT Native Interface, which allows 
you to render part of the Java UI in native code.  I have not used it, 
but it sounds like it may be what you need.  For more information, see:

    http://java.sun.com/j2se/1.3/docs/guide/awt/enhancements.html#native

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.145f07e646ef29a8989c76@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39F4845E.6702B997@resolve3d.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,bd9a64f743802bd9
X-Google-Attributes: gid111d45,public
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Subject: Re: Blitting Efficiently In Java...
Date: 2000/10/24
Message-ID: <MPG.145f07e646ef29a8989c76@forums.borland.com>
X-Deja-AN: 685148756
References: <39F4845E.6702B997@resolve3d.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing