[haiku-development] cpu_clock_speed -- why gone?

  • From: pete.goodeve@xxxxxxxxxxxx
  • To: Haiku Development <haiku-development@xxxxxxxxxxxxx>
  • Date: Thu, 16 Mar 2017 15:08:59 -0700

Hi,

I'm curious to know why the 'cpu_clock_speed' item was removed
from system_info.

I finally found why ArtPaint had a vanishing dynamic image (when
translated or rotated).  It orignally used the speed value to decide
what resolution it could afford when moving an image, but the
fixed value that was patched in to replace it was way off and just
caused it to give up completely!

I've made things work with a more reasonable value (1GHz), but
this throws away all the (I assume) carefully crafted calculations
to get the best result under all conditions.  This may not be a
problem with current machines, but it still seems a  shame.

What puzzles me greatly is that the BeOS version and an earlier
Haiku compile, running in a current Haiku, both seem to be getting
the clock value, as they have perfectly good rotation/translation.
How is this possible?

Thanks,

        -- Pete --

Other related posts: