Set appropriate values for the tile cache. This makes a large speed

* plug-ins/wind/wind.c, plug-ins/bumpmap/bumpmap.c: Set
 	appropriate values for the tile cache.  This makes a large speed
 	difference.
This commit is contained in:
jaycox 1999-03-11 18:20:32 +00:00
parent 3e1fceb442
commit a4fd7b62ab
5 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,9 @@
1999-03-10 Jay Cox <jaycox@earthlink.net>
* plug-ins/wind/wind.c, plug-ins/bumpmap/bumpmap.c: Set
appropriate values for the tile cache. This makes a large speed
difference.
1999-03-10 Michael Natterer <mitschel@cs.tu-berlin.de>
* app/devices.c: don't let session management set the size of the

View file

@ -443,7 +443,8 @@ run(char *name,
gimp_drawable_gray(drawable->id))) {
/* Set the tile cache size */
gimp_tile_cache_ntiles((drawable->width + gimp_tile_width() - 1) /
gimp_tile_cache_ntiles(2*(drawable->width +
gimp_tile_width() - 1) /
gimp_tile_width());
/* Run! */

View file

@ -443,7 +443,8 @@ run(char *name,
gimp_drawable_gray(drawable->id))) {
/* Set the tile cache size */
gimp_tile_cache_ntiles((drawable->width + gimp_tile_width() - 1) /
gimp_tile_cache_ntiles(2*(drawable->width +
gimp_tile_width() - 1) /
gimp_tile_width());
/* Run! */

View file

@ -169,7 +169,7 @@ run(gchar *name, gint nparams, GParam *param, gint *nreturn_vals,
run_mode = param[0].data.d_int32;
drawable = gimp_drawable_get(param[2].data.d_drawable);
gimp_tile_cache_ntiles(drawable->width / gimp_tile_width() + 1);
gimp_tile_cache_ntiles(2 * (drawable->width / gimp_tile_width() + 1));
switch (run_mode)
{
case RUN_NONINTERACTIVE:

View file

@ -169,7 +169,7 @@ run(gchar *name, gint nparams, GParam *param, gint *nreturn_vals,
run_mode = param[0].data.d_int32;
drawable = gimp_drawable_get(param[2].data.d_drawable);
gimp_tile_cache_ntiles(drawable->width / gimp_tile_width() + 1);
gimp_tile_cache_ntiles(2 * (drawable->width / gimp_tile_width() + 1));
switch (run_mode)
{
case RUN_NONINTERACTIVE: