Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Tue Apr 16, 2024 11:45 pm

All times are UTC




Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Mon Oct 06, 2008 1:59 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

Some info about this bug.

I manage to have it here, small lags but it exist.

But you must read this.

If i comment line 69 of raykartracing (clouds update), application fails !

un comment -> work with small lag.

It fail in ode solveur. But i don't think the solver is problematic. There must be data corruption somewhere.

Hope this help.

P.S.: No lag at all with MD or other apps.


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 2:09 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
ouille wrote:
Hello,

Some info about this bug.

I manage to have it here, small lags but it exist.

But you must read this.

If i comment line 69 of raykartracing (clouds update), application fails !

un comment -> work with small lag.

It fail in ode solveur. But i don't think the solver is problematic. There must be data corruption somewhere.

Hope this help.

P.S.: No lag at all with MD or other apps.


1) look inside default.cfg, when you need enable/disable any things ;)
2) source are now updated - frustum culling test is removed.

_________________
[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64
[SW] Blide Plus, BlitzMax, Delphi, C++
[3D] Leadwerks 2.1, C4, TGE 1.5.2, Beyond Virtual


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 4:33 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Quote:
I manage to have it here, small lags but it exist.
[...]
P.S.: No lag at all with MD or other apps.


Why the results are not the same as AndyGFX ? :) This is going to turns me mad :)


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 4:40 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Cause (i presume) is not the same bug.
All the behaviors that stops raydium (overflow in the output, loading things, and so) cause the same effect that LAG BUG, but only that time. If the problem is looped, then the effect is also looped, and it can be easily confused with real LAGBUG (Maybe we have to write a page in the wikipedia with this term :D ).
I'm pretty sure the lag bug is high resolution timer related... :(


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 5:47 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

Can you (vincente) or AndyGfx try to make tests on a really small app that we can tests on others machine.

From my tests lag can be caused by:
- video card driver trouble.
- sound api (lot's of sound source to mix): directly related to andygfx code
- heavy particule handled in collision callback: directly related to andygfx code
- clouds and i don't now whatever: directly related to andygfx code
- grass: directly related to andygfx code

Don't misundestand me: andygfx make something in his code that make raydium bug, it's not andygfx problem but raydium to handle that. But i need to know where i have to look.

I can't invesitgate all of this, without sometimes explanation of angygfx on specific code hint for example and tons of hours.

I have no lag with maniadrive on ati hd card and core2duo on several computer i can make tests.

Is test6 experience this bug ?

Is explo.c (with camera tweak) the raydium's greatest piece of code candidate to this bug ?

Idem for test8, kinghill, raycar.

All of them are quite well known apps that it's easier to debug.

Waiting for you conclusion or proposal of a test code.

On the other hand: app crash in ode lcp solver, so it's ode problem :D not raydium (i don't believe this).

Have a nice day
Ouille


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 8:23 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
Quote:
Don't misundestand me: andygfx make something in his code that make raydium bug, it's not andygfx problem but raydium to handle that. But i need to know where i have to look.


I know that isn't my problem. ;)

NEWS:
I don't understand what was bad, but today after update linux OS on this machine: Desktop: Core2Duo X6800, nvidia 7300, Ubuntu 8.04., all radium demos and my too, work without LAG. It's strange for me.

_________________
[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64
[SW] Blide Plus, BlitzMax, Delphi, C++
[3D] Leadwerks 2.1, C4, TGE 1.5.2, Beyond Virtual


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 9:20 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
vicente: high resolution timer is completely hidden by Linux API, so it couldn't be the problem here, IMHO. in facts, we already had a bug with this timer a few years ago, and we fixed it (see raydium_timecall_internal_w32_detect_modulo() in timecall.c), but only for win32. It was not needed for Linux.


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 10:40 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
Note:

On my working PC (with 4 CPU) need raydium app, about 150-240% cpu time, divided to 4 CPU, but on Peter's PC under linux is only one CPU on 100% and second has 0%. Is it normal? Looks like wrong CPU time management.

_________________
[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64
[SW] Blide Plus, BlitzMax, Delphi, C++
[3D] Leadwerks 2.1, C4, TGE 1.5.2, Beyond Virtual


Top
 Profile  
 
PostPosted: Tue Oct 07, 2008 10:42 am 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Raydium is monothreaded. It can (and wants) only eat one CPU/core. All Linux kernels does not reports CPU usage the same way, it's probably why you see differences here.


Top
 Profile  
 
PostPosted: Tue Oct 07, 2008 10:57 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Ouille, I'll re-confirm this later, but ,i'm pretty sure, you can make tests with skel.c.
ALL raydium application using ODE have lagbug (in those computers).
Also I have modified it to show console output when lagbug occurs(0.1 is a try-out value to medium-low computers):
Code:
/*
    Raydium - CQFD Corp.
    http://raydium.org/
    Released under both BSD license and Lesser GPL library license.
    See "license.txt" file.
*/

// This file is a default skeleton. Replace all [ ... ] sections with yours.
// Have fun !

#include "raydium/index.c"


void display(void)
{
raydium_joy_key_emul();

if(raydium_key_last==1027)
    exit(0);
if(raydium_frame_time>0.1f)raydium_log("WOPS...This could be LAGBUG!!!");
raydium_clear_frame();
/* [ place your camera here ] */ raydium_camera_look_at(10,-2,2,0,0,0);
/* [ draw here ] */ raydium_ode_draw_all(0);
raydium_rendering_finish();
}


int main(int argc, char **argv)
{
raydium_init_args(argc,argv);
raydium_window_create(640,480,RAYDIUM_RENDERING_WINDOW,"My app");

raydium_texture_filter_change(RAYDIUM_TEXTURE_FILTER_TRILINEAR);
raydium_window_view_perspective(60,0.01,2500); // fov 60 + near and far planes

raydium_fog_disable();   
raydium_light_enable();
raydium_light_on(0);

raydium_light_conf_7f(0,50,150,200,1000000,1,0.9,0.7); // id, pos, intensity and color (RGB)
raydium_background_color_change(1,0.9,0.7,1);

raydium_sky_box_cache();

/* [ place base scene here ] */ raydium_ode_ground_set_name("cocorobix.tri");

raydium_callback(&display);
return(0);
}

// EOF

When Peter test this file later i'll say you how many times the lagbug check appears in the output.
By the way it's more or less common if the check appears in your output a few times (at least 1 time at start).


Top
 Profile  
 
PostPosted: Tue Oct 07, 2008 8:48 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Well people, good news.
With the last updates in ubuntu in the last 24/48 hours almost all computers are now free of LAGBUG :D
Almost, cause there is only ONE computer still with that problem. The peter's desktop computer:
  • PC Decktop: ATI HD2400 Pro, Core2Duo D925 3.0MHz ,Ubuntu 8.04
But i'm confident it will be spontaneusly fixed in a few days. 8)
Looks like the problem was with ubuntu 8.04 and certain computers.


Top
 Profile  
 
PostPosted: Tue Oct 07, 2008 9:00 pm 
Offline

Joined: Mon Aug 25, 2008 1:08 pm
Posts: 67
wow only 3 mhz, it is a apple II ? :D

ubuntu is useless for developpement , is only for server and desktop , exeprience inside :)

_________________
Image


Top
 Profile  
 
PostPosted: Tue Oct 07, 2008 9:12 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Mmmm ... there's other places for distro trolls than here, I think.

And I have the sneaking suspicion that vicente have a bit more experience than you seems to think :)


Top
 Profile  
 
PostPosted: Tue Oct 07, 2008 9:13 pm 
Offline

Joined: Mon Aug 25, 2008 1:08 pm
Posts: 67
(c'etait pas un troll, mais c'est juste que ubuntu sa jamais été une distrib de dev, je le sais par experience, j'ai toujours pas compris comment avoir ce ****** de qt4.4.* avec phonon :/ et raydium marche de justesse :) )

_________________
Image


Top
 Profile  
 
PostPosted: Tue Oct 07, 2008 9:17 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Sauf ton respect, tu racontes des bêtises ... Mais surtout, ce topic sert d'autres intérêts, et en l'occurrence, nos posts n'ont rien à faire ici, sinon polluer un sujet particulièrement important.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group