[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums | Starcraft II |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Resources > JASS Functions

JASS Functions Approved JASS functions will be located here.
Remember to submit your own resources to the submission forum.

Reply
 
LinkBack (2) Thread Tools
Old 12-06-2009, 09:59 AM   #31 (permalink)
Registered User Element of Water
He has beautiful eyes...
 
Element of Water's Avatar
 
Join Date: Aug 2008
Posts: 2,063
Element of Water is just really nice (284)Element of Water is just really nice (284)Element of Water is just really nice (284)Element of Water is just really nice (284)Element of Water is just really nice (284)
Yeah. That inlines. But not if you have debug mode on :P.
Element of Water is offline   Reply With Quote
Old 12-06-2009, 11:09 AM   #32 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 428
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
woops

Quote:
Phase 1: import/novjass/delimited comments
Phase 2: text macros
Phase 3: Zinc
Phase 4: Libraries
Phase 5: Static ifs
Phase 6: Modules
Phase 7: Structs and many other things
Phase 8: PJass
Phase 9: Shadowhelper
Phase 10: PJass
Phase 11: Optimization (inline)
no wonder ^_^... I was checking via an error and optimization is done on the last phase so the inlining wouldn't have shown up ;o.
Nestharus is offline   Reply With Quote
Old 12-06-2009, 11:40 AM   #33 (permalink)
Registered User MapperMalte
MapperMalte
 
MapperMalte's Avatar
 
Join Date: Nov 2007
Posts: 368
MapperMalte has little to show at this moment (29)MapperMalte has little to show at this moment (29)MapperMalte has little to show at this moment (29)
Well, I didn't have debug mode on in my test. It would've been displayed.
MapperMalte is offline   Reply With Quote
Old 12-06-2009, 08:52 PM   #34 (permalink)
Registered User Element of Water
He has beautiful eyes...
 
Element of Water's Avatar
 
Join Date: Aug 2008
Posts: 2,063
Element of Water is just really nice (284)Element of Water is just really nice (284)Element of Water is just really nice (284)Element of Water is just really nice (284)Element of Water is just really nice (284)
You can look at the generated map script by going to
Code:
<Your NewGen Installation>\logs\outputWar3Map.j
Element of Water is offline   Reply With Quote
Old 12-07-2009, 12:34 AM   #35 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 428
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
Quote:
Originally Posted by Element of Water View Post
You can look at the generated map script by going to
Code:
<Your NewGen Installation>\logs\outputWar3Map.j
I know how to look at generated map script : p. I actually looked at map script and went, oh it inlines.. that means it does a dif order. From there I proceeded to Zinc manual cuz I knew the order was somewhere in there, and lo and behold there it was : o. Optimization is done last : D.

I always just use MPQ Editor since it takes me one second as MPQ Editor already points to all the right places ;p.


Btw, cjass updated to 1.3 : ). Sevion was running into syntax errors, I investigated and found a mistake due to a one liner definition that was set up with multi line method (yea.. cjass needs to fix that bug).

Changed it to one liner definition to fix the issue and now it works : ).

Thank you sevion for notifying me ^_^.
Nestharus is offline   Reply With Quote
Old 12-07-2009, 06:57 PM   #36 (permalink)
Forum Moderator azlier
Blasphemy!
 
Join Date: Oct 2008
Posts: 176
azlier has little to show at this moment (55)
The benchmarks on TheHelper were broken. MapperMalte's benchmark is broken. Each benchmark needs to be done in separate thread within the same environments.
azlier is offline   Reply With Quote
Old 12-07-2009, 07:24 PM   #37 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 428
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
Hence the 5 or 6 different results thus far -.-

Oh 1.4 cjass up

Thank you Sevion for noticing another bug, aka the map wouldn't run : p

Last edited by Nestharus; 12-09-2009 at 04:27 AM.
Nestharus is offline   Reply With Quote
Old 12-09-2009, 04:04 PM   #38 (permalink)
Registered User MapperMalte
MapperMalte
 
MapperMalte's Avatar
 
Join Date: Nov 2007
Posts: 368
MapperMalte has little to show at this moment (29)MapperMalte has little to show at this moment (29)MapperMalte has little to show at this moment (29)
My benchmark was not broken.
MapperMalte is offline   Reply With Quote
Old 12-09-2009, 08:57 PM   #39 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 428
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
Quote:
Originally Posted by MapperMalte View Post
My benchmark was not broken.
you made mistakes too malte

function calls
use of strings

I don't think you used loops within the actual benchmarks, so that's one thing you did right : ). I don't want to open the map to find out because opening a map is a serious pain for me ><

So yea.. you had your mistakes too : ). You have no idea what strings do to running code ;o


The best method was to run a series of benchmarks and add them up, each benchmark maybe taking 10 results all exact operations with 0 extra calls. The loop would run outside of the benchmarking so that each operation was the exact system running : ). No strings until after the benchmarking took place and only one benchmark per run of the map as a previous benchmark could screw up results for following benchmarks. The computer has to be in the exact same state for each benchmark (making this entire effort futile ><).
Nestharus is offline   Reply With Quote
Old 12-09-2009, 08:59 PM   #40 (permalink)
Forum Moderator azlier
Blasphemy!
 
Join Date: Oct 2008
Posts: 176
azlier has little to show at this moment (55)
Yes it was. Look here.

Jass:
call Test.Start("PT","GetPlayer")
    call GetPlayer(0)
call Test.End()

call Test.Start("Native","Player")
    call Player(0)
call Test.End()

First flaw: those are not in separate functions called via TriggerExecute. Which means you can get weird results.

Second flaw: you call Player and GetPlayer, which means GetPlayer cannot inline like it should. So, GetPlayer should be even faster than your benchmark says it is.
azlier is offline   Reply With Quote
Old 12-10-2009, 12:56 AM   #41 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 428
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
Approved results place GetPlayer at 33.27% faster than Player()
Nestharus is offline   Reply With Quote
Old 12-11-2009, 06:56 PM   #42 (permalink)
Registered User MapperMalte
MapperMalte
 
MapperMalte's Avatar
 
Join Date: Nov 2007
Posts: 368
MapperMalte has little to show at this moment (29)MapperMalte has little to show at this moment (29)MapperMalte has little to show at this moment (29)
Quote:
Originally Posted by azlier View Post
Yes it was. Look here.

call Test.Start("PT","GetPlayer")
    call GetPlayer(0)
call Test.End()

call Test.Start("Native","Player")
    call Player(0)
call Test.End()

First flaw: those are not in separate functions called via TriggerExecute. Which means you can get weird results.

Second flaw: you call Player and GetPlayer, which means GetPlayer cannot inline like it should. So, GetPlayer should be even faster than your benchmark says it is.
Please read!
I directly inlined the GetPlayer function and the test.Start is just a synonym for StopWatchMark()
MapperMalte is offline   Reply With Quote
Old 12-11-2009, 07:07 PM   #43 (permalink)
Registered User Element of Water
He has beautiful eyes...
 
Element of Water's Avatar
 
Join Date: Aug 2008
Posts: 2,063
Element of Water is just really nice (284)Element of Water is just really nice (284)Element of Water is just really nice (284)Element of Water is just really nice (284)Element of Water is just really nice (284)
Er, no, that's not inlined. How the hell is that meant to inline? You should do set p = GetPlayer(0) / Player(0).
Element of Water is offline   Reply With Quote
Old 12-11-2009, 07:35 PM   #44 (permalink)
Registered User YourNameHere
wuts dis?
 
Join Date: Apr 2007
Posts: 595
YourNameHere has a spectacular aura about (120)YourNameHere has a spectacular aura about (120)YourNameHere has a spectacular aura about (120)YourNameHere has a spectacular aura about (120)
Quote:
Originally Posted by MapperMalte View Post
Please read!
I directly inlined the GetPlayer function and the test.Start is just a synonym for StopWatchMark()
To what should inline that? Use your common sense.
__________________
--YourNameHere
YourNameHere is offline   Reply With Quote
Old 12-12-2009, 09:34 AM   #45 (permalink)
Registered User MapperMalte
MapperMalte
 
MapperMalte's Avatar
 
Join Date: Nov 2007
Posts: 368
MapperMalte has little to show at this moment (29)MapperMalte has little to show at this moment (29)MapperMalte has little to show at this moment (29)
I inlined it by hand.
MapperMalte is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.hiveworkshop.com/forums/jass-functions-413/system-pt-player-tracking-142554/
Posted By For Type Date
Offering JASS Support Services This thread Refback 01-26-2010 01:50 AM
[System]Gcsn- Costs and States - Wc3C.net This thread Refback 09-03-2009 12:17 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Unsolved] how do you place a tracking becan qazsw World Editor Help Zone 3 05-04-2009 10:03 PM
Tracking targets with the cannon tower Discipline Modeling & Animation 5 04-07-2009 01:05 PM
[Unsolved] Follow the player spawn system? Bane World Editor Help Zone 5 03-26-2009 03:30 PM
[Trigger] boot player system PrisonLove Triggers & Scripts 10 07-22-2008 09:39 PM
Tracking assists on a hero kill The_Prophet Map Development 5 07-12-2005 06:57 PM

All times are GMT. The time now is 08:59 AM.






Hosting by SliceHost 
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1
Copyright©Ralle