<div dir="ltr">Hi Richard,<div><br></div><div>Since only the low 32 bits are kept (the high bits are simply discarded), the wrap-around of the ModifiedTime is exactly the same as if a 32-bit unsigned integer was being incremented.</div><div><br></div><div> - David</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 8, 2016 at 6:27 AM, Richard Frank <span dir="ltr"><<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><span></span></div><div><div>Actually, it's a bit stranger than I thought. The global time stamp on Windows 64 bit is a 64 bit int cast to an </div><div>Unsigned long, as size of void ptr is 8<br><table style="border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:13px"><tbody><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)"><span>void</span> <span>vtkTimeStamp::Modified</span>()</span></font></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)">{</span></font></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)">#<span>if</span> VTK_SIZEOF_VOID_P == 8</span></font></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)"> <span>static</span> vtkAtomicInt64 <span>GlobalTimeStamp</span>(<span>0</span>);</span></font></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)">#<span>else</span></span></font></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)"> <span>static</span> vtkAtomicInt32 <span>GlobalTimeStamp</span>(<span>0</span>);</span></font></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)">#<span>endif</span></span></font></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)">
</span></font></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)"> <span>this</span>->ModifiedTime = (<span>unsigned</span> <span>long</span>)++GlobalTimeStamp;</span></font></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;line-height:18px;text-align:right;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;overflow:visible;word-wrap:normal"><font color="#000000" face="UICTFontTextStyleTallBody"><span style="font-size:19px;background-color:rgba(255,255,255,0)">}<br><br>I'm not certain off the top of my head what the wrap around pattern would be - probably 2 times around before wrapping to zero....<br><br><br></span></font></td></tr></tbody></table><div>Sent from my iPad</div></div><div><br><span class="">On Mar 7, 2016, at 11:13 AM, David Cole <<a href="mailto:DLRdave@aol.com" target="_blank">DLRdave@aol.com</a>> wrote:<br><br></span></div><div><div class="h5"><blockquote type="cite"><div><span>This is a well known issue, reported here:</span><br><span></span><br><span> <a href="http://www.vtk.org/Bug/view.php?id=14310" target="_blank">http://www.vtk.org/Bug/view.php?id=14310</a></span><br><span></span><br><span>There are some patch files against older versions of VTK which are</span><br><span>attached to the bug. You could try a similar patch (although it's</span><br><span>quite a few lines to change) against whatever version of VTK you are</span><br><span>using.</span><br><span></span><br><span>I would be VERY interested in seeing a modification to fix this</span><br><span>problem make its way into VTK master.</span><br><span></span><br><span></span><br><span>David C.</span><br><span></span><br><span></span><br><span>On Mon, Mar 7, 2016 at 9:36 AM, Ken Martin <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>> wrote:</span><br><blockquote type="cite"><span>Oops, yes, I meant runnable time not run time :-)</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>On Mon, Mar 7, 2016 at 9:25 AM, Richard Frank <<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>> wrote:</span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Oh never mind - increase the runnable time not run time :>}</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Sent from my iPad</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>On Mar 7, 2016, at 9:07 AM, David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>> wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>On Mon, Mar 7, 2016 at 6:43 AM, Richard Frank <<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>> wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Not yet. That will be next step. Seems plausible since I can't find</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>after quite a bit of testing any leaks, OpenGL errors reported, and testing</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>on different systems with different Nvidia cards. etc, and tracing into VTK</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>( although trying to trace through all the calls to executive, algorithm,</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>superclass, etc is quite cumbersome). Things just fail to move, silently.</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>As far as I'm aware, the only reason that VTK hasn't yet switched to a</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>64-bit MTime everywhere is that there would be backwards compatibility</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>problems (GetMTime is a virtual method that is overridden in many</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>subclasses).</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>I found another post where someone had a slightly similar problem and</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>said removing and re-adding actors fixed the problem, which we also seem to</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>see.....</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>The VTK pipeline uses the difference between timestamps to as an indicator</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>for when to undertake certain actions. So it is likely that problems only</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>arise when this "difference" between two crucial timestamps exceeds the</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>32-bit limit. That's why re-adding actors might fix the problem.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Also, why the runtime hit on a 64 bit build?.</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>What are you referring to? (I rarely use Windows, and when I do, I use</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>32-bit builds).</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span> - David</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>_______________________________________________</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Visit other Kitware open-source projects at</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Please keep messages on-topic and check the VTK FAQ at:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Follow this link to subscribe/unsubscribe:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>--</span><br></blockquote><blockquote type="cite"><span>Ken Martin PhD</span><br></blockquote><blockquote type="cite"><span>Chairman & CFO</span><br></blockquote><blockquote type="cite"><span>Kitware Inc.</span><br></blockquote><blockquote type="cite"><span>28 Corporate Drive</span><br></blockquote><blockquote type="cite"><span>Clifton Park NY 12065</span><br></blockquote><blockquote type="cite"><span><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>This communication, including all attachments, contains confidential and</span><br></blockquote><blockquote type="cite"><span>legally privileged information, and it is intended only for the use of the</span><br></blockquote><blockquote type="cite"><span>addressee. Access to this email by anyone else is unauthorized. If you are</span><br></blockquote><blockquote type="cite"><span>not the intended recipient, any disclosure, copying, distribution or any</span><br></blockquote><blockquote type="cite"><span>action taken in reliance on it is prohibited and may be unlawful. If you</span><br></blockquote><blockquote type="cite"><span>received this communication in error please notify us immediately and</span><br></blockquote><blockquote type="cite"><span>destroy the original message. Thank you.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Visit other Kitware open-source projects at</span><br></blockquote><blockquote type="cite"><span><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Please keep messages on-topic and check the VTK FAQ at:</span><br></blockquote><blockquote type="cite"><span><a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Follow this link to subscribe/unsubscribe:</span><br></blockquote><blockquote type="cite"><span><a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote></div></blockquote></div></div></div></div></blockquote></div><br></div></div></div>