As I could understand EDT_NULL will not render anything at all, but will it compute anything?
Right now I'm checking if the choosed resolution is supported like this:
It will slow down your program in the extent that it will use as many resources as needed, it will perform all the calculations (matrix transformations, skinning, animators, octree traverse...) the software needs, and all the resources assigned to it cannot be used with any other device, but for instance, a NULL device is thread safe because it is hardware independent, so if you want to use it, it isn't a bad idea to create the NULL devices on diferent threads.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
if you init your app from a xmlfile you can use a IXMLReader and it need a device.
so you use first the NULL_device, read the xml with the config and kill it with nulldevice->drop(); and
the nulldevice is dead and uses nothing.
goto, continue and break; the three forbidden statements of the good practices of programming. Well, break, is reasonable inside a switch case, but out of that...
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
I don't even think of them as bad practices. The jump caused by break/continue is restricted and clearly defined, so they are not causing the problems with spaghetti code like the wild jumps caused by goto. Without break/continue you can only do early outs by deep nesting if's - I don't think that's better. But I have to admit I also avoided those two commands for a few years before I started loving them.
They break structured programming practices, but if we had to stick to structured programming practices, a method could only have a SINGLE return sentence XD
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt