[yoshimi] Re: Significant changes to the Engine? -- Re: Yoshimi V 1.5.10
- From: Ichthyostega <prg@xxxxxxxxxxxxxxx>
- To: yoshimi@xxxxxxxxxxxxx
- Date: Thu, 20 Dec 2018 02:30:34 +0100
Am 19.12.18 um 17:17 schrieb Chris Ahlstrom:
Sounds like an option to use new vs old RNG might be in order....?
of course yes, but...
The calls to the random number generator are in the innermost loop
and they call a local function, which means it can be aggressively optimised
by the compiler. If we just naively make that "switchable", we'd get an
indirect call trough a function pointer somewhere. And under the given
conditions, I'd expect this would create quite an significant overhead.
Haven't benchmarked it, but all experience tells me so.
So we'd have to pull off some more clever tricks, like using C++ Templates.
Or code generation of some kind. All of which, while certainly doable,
is rather outside the style and scope of the existing code base.
Yoshimi source code is available from either:
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx
Other related posts: