1st renderOnce() takes long on Ati only...?

Hello,

my Xith3d application runs fine on a Windows PC with Detonator graphics driver. The application builds a very small scenegraph (a few primitive objects). Then it calls view.renderOnce() for the very first time and the call takes literally no time, as expected for a fast PC.

However, when the same Xith app is run on the same PC with an Ati graphics card and Catalyst driver (v3.09), the very first call to renderOnce() takes about 5 seconds. :frowning:
I quit the app and start it again, but suddenly the first call to renderOnce() is OK and takes literally no time.

Do I have some Ati-Jogl-Xith3d cache problem?

If I quit the Xith app and use some other 3d software or change resolution/bpp etc, and start the Xith app, again its first call to renderOnce() takes about 5 seconds.

Did anybody experience “longer starting times” with Ati drivers and Xith/Jog apps, too?

PS: I don’t use the very newest Catalyst driver (4.10) because the first time I started my Xith app resulted in a BSoD (the blue screen sayed an AtiXXX.dll caused it). :frowning:

Using ATi Radeon 9700 Pro with Catalyst 4.1 and my fps rocks :slight_smile:

I’ve profiled my app a view times for exactly this sort of thing and never come across this, although I’m using Omega drivers on ATi instead.

Kev

[quote]I’ve profiled my app a view times for exactly this sort of thing and never come across this, although I’m using Omega drivers on ATi instead.
[/quote]
Thanks for that info. So I suppose it’s a kind of ATI related problem, and not application specific. :frowning:

I have the same issue on my GeForce Ti 4600, it isn’t 5 seconds but the first call does take noticably longer than the rest.

[quote]I have the same issue on my GeForce Ti 4600, it isn’t 5 seconds but the first call does take noticably longer than the rest.
[/quote]
Is your scenegraph filled with a lot?
Does your “system” cache - ie is the first render call still delayed when you start your Xith app a 2nd time within a short time?

My scenegraph is very small, about three primitive objects, so that can’t be the issue.
On a Geforce TI4200 on the same PC the same Java Xith app doesn’t take “extra seconds” for the first render call. I just noticed it on an ATI gfx card, but maybe it’s a general problem…

Kev, did your profile say anything about where the problem could be? JOGL? Xith? Did you notice the delay just on ATI gfx cards (like I did) ?

Very small scene graph, like 1 object a sphere. Also I think it happens every run, I’m not at home now and I can’t remember. I simply assumed this had something to do with getting the OGL system initialized.

[quote]Very small scene graph, like 1 object a sphere. Also I think it happens every run, I’m not at home now and I can’t remember. I simply assumed this had something to do with getting the OGL system initialized.
[/quote]
Could you please verify if the first render call is being delayed always, or does the system cache it, so if you start your app again after a short time, the first render call returns instantly?

When it comes to debugging a small Xith application with just a handfull polygons it’s very annoying to see the app taking 5+ seconds before the Canvas3d has finished its very first render call… :frowning:

Javacooldude: you wrote you don’t see such delays - do you call renderOnce() or do you use the view.startView() automatic render thread?

Probably most Xith users don’t have got ATI gfx cards? Lucky you. As mentioned: I don’t notice any delay with the sam app when it runs on a Geforce4.

In all my demos, renderOnce() is all I use to refresh the scene.
Here, take a look at the source code of my applications in this thread:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1071038323

PS: It might be some other thing in your system that is slowing the first pass down.
After all a PC is not just a Graphic Card :wink:

I’m experiencing the same problem with my current project. I render a large terrain and two ASE models. The program loads and the scene is initially rendered but if I try to move within the scene for the first few seconds, I get no response. After this delay, the programs runs pretty quickly. This is on a Radeon 9800.

[quote]I’m experiencing the same problem with my current project. I render a large terrain and two ASE models. The program loads and the scene is initially rendered but if I try to move within the scene for the first few seconds, I get no response. After this delay, the programs runs pretty quickly. This is on a Radeon 9800.
[/quote]
Judging from the people who reported here about similar problems I think there could be some ATI OpenGL issue.

Planner1, did you have the chance to (let) test your application on a PC with another (non-ATI) gfx card?

No I have not tried it on any other machine. I do have a co-worker who runs it on a G5 with OS X and a Radeon and he says he has not experienced the problem. The delay doesn’t really bother me that much I just wanted to post here to get the word out that the problem is not just Bombadil’s.