|
3 registered members (AndrewAMD, Grant, Neb),
908
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: vec_set or setting x,y,z manually
[Re: Reconnoiter]
#443577
07/20/14 17:29
07/20/14 17:29
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
It should be setting it directly, actually. There is no 12 byte move instruction, so it also has to do three moves, plus you get the method call overhead as well as having to push the values to the stack and probably storing the framepointer (if Acknex does that. Who knows anyways?!).
However, it doesn't matter. Whatever you think, this isn't and never will be your performance bottleneck. Use a profiler, see where it is slow and optimize these parts. These micro-optimizations are useless and you should pick whatever style you prefer, not what might get retired 30 μops earlier in the processor.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
|
Entire Thread
|
vec_set or setting x,y,z manually
|
Reconnoiter
|
07/20/14 12:30
|
Re: vec_set or setting x,y,z manually
|
Kartoffel
|
07/20/14 13:12
|
Re: vec_set or setting x,y,z manually
|
Reconnoiter
|
07/20/14 16:40
|
Re: vec_set or setting x,y,z manually
|
WretchedSid
|
07/20/14 17:29
|
Re: vec_set or setting x,y,z manually
|
CyberGhost
|
07/20/14 17:39
|
Re: vec_set or setting x,y,z manually
|
DLively
|
07/20/14 18:13
|
Re: vec_set or setting x,y,z manually
|
WretchedSid
|
07/20/14 18:59
|
Re: vec_set or setting x,y,z manually
|
DLively
|
07/20/14 20:12
|
Re: vec_set or setting x,y,z manually
|
WretchedSid
|
07/20/14 20:30
|
Re: vec_set or setting x,y,z manually
|
Reconnoiter
|
07/21/14 08:17
|
Re: vec_set or setting x,y,z manually
|
WretchedSid
|
07/21/14 11:25
|
Re: vec_set or setting x,y,z manually
|
Quad
|
07/21/14 13:09
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|