Welcome to destination Unreal
Please sign in Here or Register
warning  Welcome to destination Unreal, To access all areas of this site please register an account by clicking here now. warning

 


 
Recent Topics   Next 6 >>  
 Forum   Author   Replies   Last Post 
Starfleet skin Mapping Development and Skinning EvilGrins 0 Sat Apr 20, 2024 11:52 am
EvilGrins View latest post
RoboCop skin Mapping Development and Skinning EvilGrins 0 Mon Apr 15, 2024 12:27 pm
EvilGrins View latest post
all server down General Server Chat or Problems Shado 0 Sun Apr 07, 2024 9:32 pm
Shado View latest post
Xcom MH maps for Garden of Death New Mapping Projects EvilGrins 0 Mon Apr 01, 2024 10:31 pm
EvilGrins View latest post
Screenshots Thread UT Screenshots and Movies POTS 397 Sun Mar 31, 2024 11:31 pm
EvilGrins View latest post
CTF-UTDMT-Gangland New Mapping Projects EvilGrins 0 Wed Mar 27, 2024 11:34 pm
EvilGrins View latest post
 

Found HUD script line causing framedrop in Maboroshi/TGES03

Post new topic   Reply to topic       printer-friendly view
destination Unreal Forum Index Mods, UScript and General Coding
View previous topic :: View next topic 
Author Message
Cyberia-Mix france.png

dU.Mapper
dU.Mapper

UT Name: Demona UT Since: 2000
Joined: Dec 12, 2010
Posts: 588
Location: irc://irc.epiknet.org/2LO
Reputation: 337.5
votes: 10
Status: Offline
View user's profile

Send private message


PostPosted: Sat Jul 20, 2013 7:25 am
PostPost subject:No icon Found HUD script line causing framedrop in Maboroshi/TGES03
Reply with quote

Code:
foreach VisibleCollidingActors(class'ScriptedPawn', P, 2000, C_Owner.Location, true) {
 

This is our culprit.

It comes from the DrawMonsterName() function in the mutator's HUD class.
It actually dates all the way back to UTJMH. It's been wrong ever since that time, but it only became noticeable in the dU era with the mutator growing heavier and heavier.

It causes framedrop in Maboroshi and TGES03 because the sky is covered by an absurdly huge BlockPlayer. Both the map and the mutator are at fault. But you only get framedrop when both are combined.

So in fact, all maps with huge blocking actors are affected, but it's only noticeable in these 2.
For example, in LostInTime, my framerate drops from 170 to 130, so it's there and yet not noticeable.

The obvious fix is to use:
Code:
for (P=Level.PawnList; P!=None; P=P.NextPawn) {
   if ( P.isA('ScriptedPawn') && VSize(P.Location - C_Owner.Location) < 2000 && C_Owner.LineOfSightTo(P) ) {
 


(C_Owner.CanSee(P) would make more sense than C_Owner.LineOfSightTo(P) but it causes the monsters' names to blink.)

With this I drop from 170 to 160 in LostInTime (from all the distance calculations, not sure there's a faster code), but Maboroshi is unaffected (over 200 fps).

Counting on you BoB. ;þ
Back to top Visit poster's website
-BoB- uk.png

dU.Staff
dU.Staff

UT Name: dU.BoB UT Since: 2005
Joined: Jul 20, 2010
Age: 49
Posts: 465
Location: England
Reputation: 216.2
votes: 3
Status: Offline
View user's profile

Send private message


PostPosted: Sat Jul 20, 2013 5:31 pm
PostPost subject:No icon Re: Found HUD script line causing framedrop in Maboroshi/TGE
Reply with quote

Strange though as the BlockPlayer actor isnt a 'ScriptedPawn'. Unless its doing the collision check first before the class check?
Back to top Visit poster's website MSN Messenger
Cyberia-Mix france.png

dU.Mapper
dU.Mapper

UT Name: Demona UT Since: 2000
Joined: Dec 12, 2010
Posts: 588
Location: irc://irc.epiknet.org/2LO
Reputation: 337.5
votes: 10
Status: Offline
View user's profile

Send private message


PostPosted: Sat Jul 20, 2013 6:19 pm
PostPost subject:No icon Re: Found HUD script line causing framedrop in Maboroshi/TGE
Reply with quote

Collisions seem to be implemented in a weird way.

Even when I shift Maboroshi's BlockPlayer upward so it's way out of the map, the framerate remains the same.

I remember a (bad) map that had the MHEnd trigger covering the whole map (and much more), and even though it wasn't IntiallyActive it was still destroying framerate if you had dUMH on.
Back to top Visit poster's website
Sponsor
Display posts from previous:

Post new topic   Reply to topic    printer-friendly view
destination Unreal Forum Index   Mods, UScript and General Coding
Page 1 of 1
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Had to make a wee alteration to something 0 EvilGrins 817 Sun May 31, 2020 10:13 pm
EvilGrins View latest post
No new posts I can't make maps yet... 23 EvilGrins 11056 Thu Oct 20, 2016 3:41 am
EvilGrins View latest post
No new posts First Contact ET | Make your choice 8 Terraniux 5039 Sat Nov 10, 2012 1:54 pm
herefishyfishyfishy View latest post
No new posts 35.000 maps played since 2010-08-01 2 BlackWolf 2125 Sun Feb 05, 2012 2:27 pm
HellFire View latest post
No new posts dU Logo with textures (make some!) 13 BlackWolf 6493 Wed Jan 04, 2012 3:35 pm
-BoB- View latest post
 




Theme designed and coded by PHPNuke Themes © All times are UTC + 2 Hours [DST enabled]
Forums ©

Spambot Killer
Site Map

[News Feed] [Forums Feed] [Downloads Feed] [Web Links Feed] Powered by HTML Purifier[Validate robots.txt]


PHP-Nuke Copyright © 2006 by Francisco Burzi.
All logos, trademarks and posts in this site are property of their respective owners, all the rest © 2006 by the site owner.
Powered by Nuke Evolution 2.0.7 - Nuke-Evolution Xtreme 2.0 Edition.

[ Page Generation: 0.14 Seconds | Memory Usage: 9.29 MB | DB Queries: 80 ]

Do Not Click [ Home | Forums | Downloads | Contact Us | Back To Top ]