Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 14 15 16 17 18 Next »
[WIP] Aura Eve ONLINE Project
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
[WIP] Aura Eve ONLINE Project
07-04-2015, 05:29 PM,
#9
rouing Offline
#RBR15 - Rekt by Rouing 2015
****
Posts: 295
Threads: 27
Joined: Jul 2014
RE: [WIP] Aura Eve ONLINE Project
(06-04-2015, 11:15 AM)Person8880 Wrote: Making variables local is "faster", but you'd want to be doing it with:
local chat = chat
local ents = ents
and so on. All it does is avoid a table lookup when getting those library tables, you'll still be doing table lookups on the library tables themselves when you use them.

So if you're desperate for micro-optimisation, you'd really want to be taking the functions you're using from these libraries often, and grabbing a local reference to those, e.g
local findPlayerByName = find.playerByName
local stargateTeleport = stargate.teleport
But the difference, especially in a Starfall environment, is very, very small. You'd have to pretty much be calling them many times per think/render hook to make it start to be slightly worth it.

Some other (small) things I see in no particular order:
  • This line:
    bsay("No \'Asgard Transporter\' connected.")
    The escaping of ' is not necessary when the outer delimiters are ". You only need to escape either control characters or the same character that you started the string with.

  • Personal preference, but I think:
    function AURA.COMMANDS.Status(e)
    looks better than
     AURA.COMMANDS.Status = function(e)
    and matches the other local functions which are done in the same way.

Other than that, good job so far!

Taking notes here Big Grin
I acted upon your suggestions and changed the way the functions are defined and I have to agree. I also removed most of the loadlibs.

What is this love you speak of?
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
[WIP] Aura Eve ONLINE Project - by rouing - 05-04-2015, 09:52 PM
RE: [WIP] Aura Eve ONLINE Project - by LocInt - 05-04-2015, 11:19 PM
RE: [WIP] Aura Eve ONLINE Project - by rouing - 06-04-2015, 12:40 AM
RE: [WIP] Aura Eve ONLINE Project - by LocInt - 06-04-2015, 10:26 AM
RE: [WIP] Aura Eve ONLINE Project - by TheOneAndOnlyTee - 06-04-2015, 02:50 AM
RE: [WIP] Aura Eve ONLINE Project - by rouing - 06-04-2015, 05:56 AM
RE: [WIP] Aura Eve ONLINE Project - by TheOneAndOnlyTee - 06-04-2015, 11:12 AM
RE: [WIP] Aura Eve ONLINE Project - by Person8880 - 06-04-2015, 11:15 AM
RE: [WIP] Aura Eve ONLINE Project - by rouing - 07-04-2015, 05:29 PM
RE: [WIP] Aura Eve ONLINE Project - by rouing - 09-04-2015, 04:02 AM
RE: [WIP] Aura Eve ONLINE Project - by Person8880 - 09-04-2015, 11:33 AM
RE: [WIP] Aura Eve ONLINE Project - by rouing - 17-04-2015, 02:58 PM
RE: [WIP] Aura Eve ONLINE Project - by rouing - 21-04-2015, 02:44 AM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.