Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fixing tacho band and needles in HUD
07-30-2007, 07:41 AM,
#13
 
Well... I've got a fix, but I can't say I really "figured it out". It doesn't make much sense to me.

The problem is that on my machine, VERTEX::Set(const VERTEX&) doesn't seem to work reliably. The funny thing is when I tried to inject printfs to see exactly what was happening, the particular display I was investigating would magically correct itself. It doesn't matter what the printf was.

if I change the implementation from
Code:
memcpy(&x, &(other.x), sizeof(float) * 3 );
to a more mundane
Code:
x = other.x;
y = other.y;
z = other.z;
Then the offset problem I was seeing goes away. This also seems to fix problems with the needle rotation, track dispaly ( I was seeing many missing segments ), and crashes that were happening when I run off the road ( it happens a lot Smile ).

The only thing that I can come up with is that many there is some bug in my memcpy implementation or it is configure to run asynchronously or something ( crazy talk, I know ).

Anyways, I was wondering if there is any objection to checking this in. I would conditionally compile it, but I can't think of what to switch on.
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: 3 Guest(s)