Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fixing tacho band and needles in HUD
07-31-2007, 11:04 AM,
#16
 
bugsyv Wrote:surely, function call overhead would negate any performance benefits fancy assembly code in memcpy got you. However, I ran some tests, and over 1 billion iterations the memcpy is 2 seconds faster than the three assignments ( 23 vs 21 ) on my machine.

I know, it seems weird! I think it's because the compiler ends up inlining the memcpy and just spits out assembly for a block memory copy instead of assembly for 3 memory copies for the assignments... but who knows. I profiled VDrift quite a bit with the new "scenegraph branch" code (which is now merged in the trunk); that's where this came from.
Reply


Messages In This Thread
Fixing tacho band and needles in HUD - by rookie1 - 07-20-2007, 09:55 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-20-2007, 10:15 AM
[No subject] - by rookie1 - 07-20-2007, 10:23 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-20-2007, 10:19 PM
[No subject] - by joevenzon_phpbb2_import3 - 07-20-2007, 11:35 PM
[No subject] - by joevenzon_phpbb2_import3 - 07-20-2007, 11:50 PM
[No subject] - by rookie1 - 07-21-2007, 02:52 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-21-2007, 11:34 AM
[No subject] - by xTs - 07-21-2007, 03:56 PM
[No subject] - by kidrock - 07-25-2007, 11:36 PM
[No subject] - by bugsyv - 07-27-2007, 11:11 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-28-2007, 10:42 PM
[No subject] - by bugsyv - 07-30-2007, 07:41 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-30-2007, 11:25 PM
[No subject] - by bugsyv - 07-31-2007, 09:56 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-31-2007, 11:04 AM
[No subject] - by kidrock - 07-31-2007, 01:41 PM
[No subject] - by bugsyv - 08-01-2007, 12:12 PM
[No subject] - by thelusiv - 08-01-2007, 12:20 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-01-2007, 10:23 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)