Description
I'd like a bit of clarification as to what config
and camera_config
will contain, and which one is more suitable for which scenario.
As its name would imply, I think that camera_config
is to be used exclusively by the Camera
mobject and all of its inheritors. As such, it should probably contain configurations pertaining to the frame rate, the background colour, the resolution, and similar things.
config
meanwhile, is probably supposed to contain more general configurations, such as the file output directories, the caching related configurations, the logging configuration, and similar.
Should config
also contain entries that "should" belong in camera_config
?
Currently, camera_config
is just set to be equal to config
, meaning that config
contains stuff like the frame_rate and more, and camera_config
contains stuff like the tex_template
.
Similarly, should non-Camera
objects use the values in camera_config
? The vast majority of values taken from config
are stuff like pixel_width
, frame_height
, and these are better suited to be in camera_config
, but Scene
objects often make heavy use of these values.
This ties in with #282 , since the main issue there seems to be that camera_config
was itself supposed to be an entry in config
, yet that does not appear to be the case.
An ad-hoc fix for #282 was to change config["camera_config"]
to config
, after which everything fell into place since all other objects looked for pixel_width
and pixel_height
in config
, but shouldn't stuff like pixel_width
and pixel_height
go in camera_config
anyway?
So, basically, what will config
and camera_config
contain? Will they contain duplicate values? Which objects can use which configs?
Mentioning @leotrs for his thoughts, since he wrote the config system.