mirror of https://github.com/GNOME/gimp.git
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:
parent
3e1fceb442
commit
a4fd7b62ab
|
@ -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
|
||||
|
|
|
@ -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! */
|
||||
|
|
|
@ -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! */
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue