2004-05-07, 10:12 PM
Sub,
I'm trying to get some basic animation working with the Jukebox. Â Currently I've found these problems:
- needsRendering() is never called.. ?
- Render() with requiresMoreRendering = true is called too often. Â Below is my current escape clause, but even this is too much processing; the system grinds to a halt with the CPU pegged.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
public Image render(out bool requiresMoreRendering)
{
  requiresMoreRendering = false;
  if ( nextRefresh.Ticks > DateTime.Now.Ticks )
  {
   return null;
  }
  ...
}
[/QUOTE]
Thanks,
--Bryan
I'm trying to get some basic animation working with the Jukebox. Â Currently I've found these problems:
- needsRendering() is never called.. ?
- Render() with requiresMoreRendering = true is called too often. Â Below is my current escape clause, but even this is too much processing; the system grinds to a halt with the CPU pegged.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
public Image render(out bool requiresMoreRendering)
{
  requiresMoreRendering = false;
  if ( nextRefresh.Ticks > DateTime.Now.Ticks )
  {
   return null;
  }
  ...
}
[/QUOTE]
Thanks,
--Bryan