cannot interrupt a render

i cannot interrupt a render while its working could be interesting to develop somthing like that

Thanks for the feedback!
It is on the ToDo list as far as I know. I have complained about it myself :wink:

A “cancel” option has been added. It will be in the next beta release.

Will that be in the C++ version too? Ran into that pretty hard recently.

Yes, it is in the C++ API also.

Implemented as a class you can implement:

/**
 * Interface class to be implemented by the user to signal if the current render should be stopped prematurely and
 * control be returned to the user immediately.
 */
class cancel_render_interface {
public:
	/**
	 * Called periodically by the renderer, if the user returns 'true', then the render will cease immediately
	 * regardless of its current progress, and control will exit the 'render' function
	 * @return the user should return true if they want the render to be canceled now, otherwise, return false to continue
	 */
	virtual bool is_cancelled() = 0;
};