If you only add one character per keypress you can send the position data through a material skill. That saves a lot of time. You don't need a wait(1) anymore

Code:
void paint_char(BMAP *bmpTarget, char *str, VECTOR *offset)
{
	var pos = str_getchr(str, 1);
		
	mtlProjectText.skill[0] = floatv(1);
	mtlProjectText.skill[1] = floatv(offset.x);
	mtlProjectText.skill[2] = floatv(offset.y);
	mtlProjectText.skill[3] = floatv(bmap_width(bCourier) / 32);
	mtlProjectText.skill[4] = floatv(bmap_height(bCourier) / 4);
	mtlProjectText.skill[5] = floatv(points[pos].x);
	mtlProjectText.skill[6] = floatv(points[pos].y);
	
	bmap_process(bmpTarget, bmpTarget, mtlProjectText);
}



I didn't test it. but it should run faster.

Last edited by jenGs; 08/21/14 12:49.