Page 1 of 1

[227g_36] Dispersion explosion disappear in some distances

Posted: Fri Aug 20, 2010 7:00 pm
by Age
Looks like that Dispersion explosion just disappear (fast explosion) in some distances.

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Fri Aug 20, 2010 7:37 pm
by []KAOS[]Casey
cant reproduce

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Fri Aug 20, 2010 9:18 pm
by GreatEmerald
I can always reproduce it, and I often watch that effect in my InfernoTown Castle :D But it seems to me like an optimisation rather than a bug - at that distance it would surely save you some resources if someone was spamming DP all over the map.

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Fri Aug 20, 2010 9:26 pm
by Turboman.
i can confirm this issue, running either d3d9 or opengl on ati video card.
i can post some more specs/info if needed.

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Sat Aug 21, 2010 4:49 am
by GcSkaarj
Yes, It seems more like a way to optimize resources than a bug, because is a blast that have 2 or 3 frames vs the normal one with 6 - 7. So if this is true, I think that will OK on a 1998 computer, but today doesn't really helps. If that effect can be at larger distances (or eliminated) I think that it will be better.

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Sat Aug 21, 2010 5:35 am
by []KAOS[]Casey
drawing small sprites like that is absolutely trivial on execution speed, the uscript to change the texture probably costs more cpu time.

This is probably a bug, but as to what setup it's on i'm not sure.

I remember seeing it before, but I dont remember making a big deal of it and I dont remember what setup I was on..

I can't reproduce and i'm on an nvidia gpu for the record.

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Sat Aug 21, 2010 6:40 am
by GreatEmerald
Interesting, I'm on ATI and using OpenGL.

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Sat Aug 21, 2010 7:55 am
by Age
My D3D9 settings:

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Sat Aug 21, 2010 8:02 am
by Smirftsch
My D3D9 settings:
ATI card?

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Sat Aug 21, 2010 8:03 am
by Age
My D3D9 settings:
ATI card?
Yes.

Also found whats causing it:
DispersionAmmo.uc

Code: Select all

....
simulated function Explode(vector HitLocation, vector HitNormal)
{
      if ( !bExplosionEffect )
      {
            BlowUp(HitLocation);
            bExplosionEffect = true;
            if (Level.bHighDetailMode)
                  DrawScale = Min(Damage/12.0 + 0.8,2.5);
            else
                  DrawScale = Min(Damage/20.0 + 0.8,1.5);
            LightRadius = 6;
            SetCollision(false,false,false);
            if( !EffectIsRelevant(Location,true) ) // remove this!
                  LifeSpan = 0.1; // And
            else LifeSpan = 0.7;
            Texture = ExpType;
            LightType = LT_TexturePaletteOnce;
            Skin = ExpSkin;
            DrawType = DT_SpriteAnimOnce;
            Style = STY_Translucent;
            SetPhysics(PHYS_None);
            Disable('Tick');
      }
}
....
Edit:
or change

Code: Select all

            if( !EffectIsRelevant(Location,true) )
                  LifeSpan = 0.1;
to

Code: Select all

            if( !EffectIsRelevant(Location,true) )
                  LifeSpan = 0.7;

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Sat Aug 21, 2010 8:56 am
by .:..:
EffectIsRelevant was broken because one feature in PlayerPawn was broken, but it's fixed now.

Re: [227g_36] Dispersion explosion disappear in some distances

Posted: Sat Aug 21, 2010 3:03 pm
by スマイル・ドラゴン
I never knew that function existed...