I guess it would be very slow. For a torch you could use a DX light (CreateLight) with a very small radius. You could then use some random brightnesses (using the color of the light) for the light each loop to make it look flickering. For a headlight you can use a DX light too, together with a linepick. Simply pick the geometry the lamp is pointing to and position the light at pickedx/y/z. Of course, these lights don't cast shadows. But they look pretty good nevertheless, in a dark room with low ambienttlight.