Login
Register
Menu
Home
Forum
JassDoc
Types
Functions
Variables
Help
Chat
Media
Search
Search posts
WC3 JASS.com
"The Jass Vault" plus vJASS and Zinc
WC3 Modding Information Center
Forum
Warcraft (WC3) Modding
Triggers & Scripting
WC3JASS.com
Jass Theory & Questions
[Knowledge Construction] JASS mythbusters.
Warcraft III:
Maps
Models
Skins
Icons
Spells / Systems
Tools
Tutorials
Snippets
JASS vJASS Spells and Systems
Tutorials
Chat @Discord
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation
-
Zinc documentation
-
WC3 Optimizer documentation
[Knowledge Construction] JASS mythbusters.
Jass Theory & Questions
Started by
moyack
Views
14435
Replies
5
Users
3
2
3
1
Pages:
1
Go Down
0 Members and 1 Guest are viewing this topic.
moyack
Site Owner
Administrator
Posts:
971
WC3 Models: 20
WC3 Tutorials: 17
WC3 Tools: 19
WC3 Maps: 12
WC3 Skins: 0
WC3 Icons: 1
WC3 Spells: 16
Reputation:
1153
Site Admin - I love fix things
[Knowledge Construction] JASS mythbusters.
on:
August 03, 2012, 05:08:02 PM
Hello Jassers:
I want to start a thread where we can put all the stuff that makes you doubt about jass. Specifically questions related to efficiency and code development.
The idea is that this thread will show in the first post a table with all the information we can gather, and it will serve as a point of reference for support in other questions dine in this site.
Question
Answer
Question 1
Answer 1
Let's start with the first question:
At the end, what produces leaks and what not?
Dont' forget to provide a test map with the sample code, etc
WC3 Modding Information Center
Troll-Brain
Rookie - level 1
Posts:
48
WC3 Models: 0
WC3 Tutorials: 0
WC3 Tools: 0
WC3 Maps: 0
WC3 Skins: 0
WC3 Icons: 0
WC3 Spells: 0
Reputation:
8
cool != useful
Re: [Knowledge Construction] JASS mythbusters.
Reply #1 on:
August 15, 2012, 12:58:23 PM
Sorry but i have no more motivation for such things.
But i suppose this thread could be more or less useful :
http://www.hiveworkshop.com/forums/triggers-scripts-269/benchmarks-truth-out-there-201810/
vJass is already a jass preprocessor, no need to (ab)use vJass features in order to make some inferior vJass preprocessor coded "by hand".
Magtheridon96
Awesome Global Code Moderator
Recognized User
Posts:
84
WC3 Models: 0
WC3 Tutorials: 0
WC3 Tools: 0
WC3 Maps: 0
WC3 Skins: 0
WC3 Icons: 0
WC3 Spells: 0
Reputation:
516
vJass Incarnate
Re: [Knowledge Construction] JASS mythbusters.
Reply #2 on:
August 16, 2012, 12:03:57 AM
I really don't have the will to make a test-map for this, but these are all the very leaky things in Warcraft III:
- Locations
- Groups
- Forces
- Special Effects
Things that cannot be destroyed:
- Terrain Deformations
- Trackables
- Events
Things that should be nulled when declared locally:
Anything that extends the 'agent' type in common.j.
moyack
Site Owner
Administrator
Posts:
971
WC3 Models: 20
WC3 Tutorials: 17
WC3 Tools: 19
WC3 Maps: 12
WC3 Skins: 0
WC3 Icons: 1
WC3 Spells: 16
Reputation:
1153
Site Admin - I love fix things
Re: [Knowledge Construction] JASS mythbusters.
Reply #3 on:
August 16, 2012, 05:33:41 AM
And what about players?? they extend agent but in theory they don't leak because they're constants. Is that totally true??
WC3 Modding Information Center
Troll-Brain
Rookie - level 1
Posts:
48
WC3 Models: 0
WC3 Tutorials: 0
WC3 Tools: 0
WC3 Maps: 0
WC3 Skins: 0
WC3 Icons: 0
WC3 Spells: 0
Reputation:
8
cool != useful
Re: [Knowledge Construction] JASS mythbusters.
Reply #4 on:
August 16, 2012, 11:03:13 AM
Note that what Mag said is only a theory, it is hardly a fact.
So we shouldn't null unitpool and itempool ?! (just as an example)
My opinion about it : just null everything which is not code, string, boolean, integer.
Regardless how the handle is recycled (with a handle reference counter like an unit, or without like an image)
Also about players i've heard that some people null them to fix a leak problem with their maps, however frankly i have never met an enough reliable people to believe this, but that doesn't mean it's not true.
About leak event i'm not sure, maybe it's cleaned when the trigger is destroyed, and well maybe it depends if there is one or more events registred to the same trigger.
PS
:
But this is 100 % true : GUI eats childrens.
vJass is already a jass preprocessor, no need to (ab)use vJass features in order to make some inferior vJass preprocessor coded "by hand".
Troll-Brain
Rookie - level 1
Posts:
48
WC3 Models: 0
WC3 Tutorials: 0
WC3 Tools: 0
WC3 Maps: 0
WC3 Skins: 0
WC3 Icons: 0
WC3 Spells: 0
Reputation:
8
cool != useful
Re: [Knowledge Construction] JASS mythbusters.
Reply #5 on:
August 18, 2012, 11:59:57 AM
Double post and one more link :
http://www.thehelper.net/threads/new-leak-found-keeping-references-to-destroyed-objects.122136/
vJass is already a jass preprocessor, no need to (ab)use vJass features in order to make some inferior vJass preprocessor coded "by hand".
Print
Pages:
1
Go Up
« previous
next »
WC3 Modding Information Center
Forum
Warcraft (WC3) Modding
Triggers & Scripting
WC3JASS.com
Jass Theory & Questions
[Knowledge Construction] JASS mythbusters.
Suggested Topics
vJASS Syntax Highlighter for notepad++
Started by
moyack
Replies: 2
Views: 6150
WC3 Editing Tools
Jassdoc introduction
Started by
moyack
Replies: 3
Views: 4233
Jassdoc
The Jass NewGen Pack (JNGP) 2.0
Started by
moyack
Replies: 225
Views: 315515
WC3 Editing Tools
coding efficient vjass structs
Started by
nestharus
Replies: 0
Views: 2297
Jass Tutorials
wc3jass.... R.I.P??
Started by
moyack
Replies: 1
Views: 8088
Tavern
PortaMx-SEF 1.54
|
PortaMx © 2008-2015
,
PortaMx corp.
Search
Username
Password
Always stay logged in
Forgot your password?