From 78dc71bda71fc8eb7accfcf68d010a0fea1a7921 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 7 Mar 2015 11:21:07 +0100 Subject: Add bucket cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stores accumulation buckets. Use case: Run n seconds, check image noise levels, run again (with cache and thus previous results), check image agin, … --- rect.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rect.h') diff --git a/rect.h b/rect.h index 39c76cb..5b3dd62 100644 --- a/rect.h +++ b/rect.h @@ -11,6 +11,9 @@ typedef struct { } bucket; void bucket_init (bucket * const b, const uint2 dim); +bool bucket_deserialize (bucket * const b, const char *file); +void bucket_serialize (bucket * const b, const char *file); + bool render_bucket (flam3_genome * const genome, bucket * const bucket, const double timelimit); void render_image (const flam3_genome * const genome, const bucket * const b, -- cgit v1.2.3