[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12358] branches/particles/source/blender: PointCache functions for physics solvers to store their data in, includes a pointCache modifier that can read and write animation point c

Alexander Ewering blender at instinctive.de
Tue Oct 23 17:24:03 CEST 2007

On Tue, 23 Oct 2007, Emil Brink wrote:

> fwrite() is not necessarily equivalent with a system call. It's a C
> standard library function, which buffers the writes. The library might
> avoid doing any system calls until you either fflush() or fclose() the
> file.

Sure, but still, doing a million nested function calls (and god knows what
hides behind the particular fwrite() implementation) (and a vertex count of
one million might even be realistic for physics models) doesn't really sound
that fast -- especially as a cache is meant for speeding up things, its
implementation should probably be optimal :)

Not to speak about the fread() loop ...

Alexander Ewering

[ i n s t i n c t i v e . ]      instinctive mediaworks

Zur Waldeshoehe 6                    Tel.: 02393-220558
59846 Sundern                         Fax: 02393-220559
Germany                xx-mail: xx-mail.com/instinctive

More information about the Bf-committers mailing list