Hi! I render panel to bmap. Then I read pixel value from this panel. Panel stores 1024X768 24bit BMP file.

Quote:

color_map.target_map = colormap;
bmap_to_format(colormap,888);
bmap_lock(colormap,888);
pixel = pixel_for_bmap(colormap,mouse_cursor.x,mouse_cursor.y);
bmap_unlock(colormap);
pixel_to_vec(color,NULL,888,pixel);



Now, I tried comment different lines. This only one:

bmap_to_format(colormap,888);

kills fps, drops it to 0. Why is it so? Is it so resourcy, or I am doing something wrong?


What kills me not, that makes me stronger.

***Working on RPG/RTS***