Skip to content

Commit 2a9e645

Browse files
committed
sync
1 parent dba2c8a commit 2a9e645

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

TODO

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
- nip4 ~/pics/a1.bmp, free rotate, open imagewindow, drag slider
2+
3+
updates often hitch badly, what's it doing?
4+
5+
perhaps it's not discarding out of date updates quickly enough?
6+
7+
test nip2 on the same task
8+
9+
always seems to be making useful pixels
10+
11+
in nip4, drag alisder a lot, end on -61, open image view window, never
12+
updates
13+
14+
you need to press 1, wait for update, then press 0 to see anything
15+
116
- check all batch mode flags
217

318
- try to save and restore image view scale and position

src/tile.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ tile_get_texture(Tile *tile)
146146
*
147147
* 2. Wrap a pixbuf around that copy.
148148
*
149-
* 3. Tag it as a texture that may need upload tyo the GPU.
149+
* 3. Tag it as a texture that may need upload to the GPU.
150150
*/
151151
if (!tile->texture) {
152152
VIPS_FREE(tile->data_copy);
@@ -169,6 +169,8 @@ tile_get_texture(Tile *tile)
169169
NULL, NULL);
170170

171171
tile->texture = gdk_texture_new_for_pixbuf(tile->pixbuf);
172+
printf("tile_get_texture: setting texture for tile %d x %d\n",
173+
tile->region->valid.left, tile->region->valid.top);
172174
}
173175

174176
return tile->texture;

src/tilecache.c

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
#include "nip4.h"
3131

3232
/*
33+
*/
3334
#define DEBUG_RENDER_TIME
3435
#define DEBUG_VERBOSE
3536
#define DEBUG
36-
*/
3737

3838
enum {
3939
/* Properties.
@@ -778,6 +778,13 @@ tilecache_compute_visibility(Tilecache *tilecache,
778778
*/
779779
tilecache_tiles_for_rect(tilecache, viewport, z, &touches);
780780

781+
#ifdef DEBUG_VERBOSE
782+
printf("viewport in level0 coordinates: left = %d, top = %d, "
783+
"width = %d, height = %d\n",
784+
touches.left, touches.top,
785+
touches.width, touches.height);
786+
#endif /*DEBUG_VERBOSE*/
787+
781788
/* Search for the highest res tile for every position in the
782789
* viewport.
783790
*/
@@ -799,9 +806,7 @@ tilecache_compute_visibility(Tilecache *tilecache,
799806
Tile *tile = TILE(p->data);
800807

801808
if (tile->time < start_time)
802-
tilecache->free[i] =
803-
g_slist_prepend(tilecache->free[i],
804-
tile);
809+
tilecache->free[i] = g_slist_prepend(tilecache->free[i], tile);
805810
}
806811
}
807812

0 commit comments

Comments
 (0)