[question] performance: static dim vs. local var menu

User Tag List

Results 1 to 1 of 1
  1. #1
    abuckau907's Avatar Active Member
    Reputation
    49
    Join Date
    May 2009
    Posts
    225
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [question] performance: static dim vs. local var

    I don't think it's very important, as it only gets created once..but i was thinking maybe some type of...extra code because it's static: so..for example, i have a class called 'GPS' which does map data, radar & movement: for recording my last position i can declare it a private variable for the entire class, or static pricate for the 1 function that uses it (rest of class doesn't use it...that's why i made it static to the function anyway)

    Code:
    Public Class GPS
    Private _lastPos as worldPoint
    Public Sub Something()
    ... _lastPos = ...
    End Sub
    End Class
    vs.
    Code:
    Public Class GPS
    
    Public Sub Something()
    Static Dim _lastPos as worldPoint
    ..._lastPos = ...
    End Sub
    End Class
    .. i know what static is..just asking if there is any performance change from using it vs. a local variable in the class (or are they == in il?)

    [question] performance: static dim vs. local var

Similar Threads

  1. [Question] reading static address from cheat engine
    By gononono64 in forum WoW Memory Editing
    Replies: 15
    Last Post: 01-06-2011, 11:27 PM
  2. Static Address of Local Player Object
    By Neverhaven in forum WoW Memory Editing
    Replies: 7
    Last Post: 10-31-2009, 03:26 PM
  3. [HELP] Memory offsets, questions about static and dynamic
    By Shutzler in forum WoW Memory Editing
    Replies: 7
    Last Post: 09-14-2009, 11:24 AM
  4. [Question] What method do you use to find static Z address?
    By Tanaris4 in forum WoW Memory Editing
    Replies: 5
    Last Post: 10-21-2008, 11:13 AM
  5. [Question] local-enus.mpq
    By L'Lawliet in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 10-09-2007, 05:24 PM
All times are GMT -5. The time now is 12:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search