Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow performance



Hello,

I was playing around with the same kind of idea some time ago and here are tips that might help you:

1. First of all, what kind of video files / fps and resolutions we talking about here? It might be, that your machine simple can't keep up with bitrate and resolutions. It is quite easy to check out: open normal QuickTime player with all your videos in separate windows, drag them to the designated screens and maximize in there. Then start playback on all screens one by one. If you'll see pure performance there is nothing you can do about it in your Java program also.

2. Do you use single Java root container stretched over the several screens with several playback components attached or do you have several root containers, each for every screen? Single root container container can dramatically decrease performance, especially on Matrox cards.

3. It might be good idea, to try out architecture, where instead of separate threads for every screen/player component, you will have physically separate java apps for every player with UDP synchronization between them. Personally, I like this setup most, since it will allow you also to have distributed players over the net. I've done this kind of apps before and it works great. However, in you project it might be requirement to have single machine, isn't it?

4. On Windows with most Matrox multi-headed cards there is a bug that kills performance of any Java apps that have any references to drawing classes (Graphics or Graphics2D from Java2D) with big screen resolutions. Passing following command line argument to Java might significantly pump up frame rate:

-Dsun.java2d.noddraw=true

I have tried it several times, it really works.

Hope some of this tips will help,

Best

email@hidden
http://www.keywebx.com

On Jul 26, 2005, at 2:26 PM, Alejandro Luján wrote:

Actually we tried using a non-ht processor and the performance was
worse.  We did manage to improve the playback but we're still not
quite there, there is some lag yet.

On the other hand, trying another video card would mean expending a
good few dollars, since the next option costs some hundred dollars.  I
need to try all options before changing hardware.

Any other ideas?

Thx

On 7/25/05, George Birbilis <email@hidden> wrote:
try other video-card and try a non hyperthreading machine

---

I am getting the component via

Component compVideo = (Component)
(QTFactory.makeQTComponent(nextMovie)).asComponent();

The Component received is an awt component, not a swing one.Got any
more ideas? I have ran out of them :(

On 7/25/05, Chris Adamson <email@hidden> wrote:
Any chance you're using the Swing QTJComponent (as opposed to the AWT
QTComponent)?

--Chris


I am implementing a multithread/multiscreen video player with Quicktime for Java and Im having some performance problems with the video playback.



--
Alejandro Lujan
Alterity Solutions
Telf: 9432229
Cel: 0414 3168275
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/ email@hidden


This email sent to email@hidden




--
Alejandro Lujan
Alterity Solutions
Telf: 9432229
Cel: 0414 3168275
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/ email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden
References: 
 >Slow performance (From: Alejandro Luján <email@hidden>)
 >Re: Slow performance (From: "George Birbilis" <email@hidden>)
 >Re: Slow performance (From: Chris Adamson <email@hidden>)
 >Re: Slow performance (From: Alejandro Luján <email@hidden>)
 >Re: Slow performance (From: "George Birbilis" <email@hidden>)
 >Re: Slow performance (From: Alejandro Luján <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.