What goes in the main process vs the render process?


How should i separate my code between the render and main process?
I understad what kind of work should be done in the render process, but what should i have in the main process?
For now I only create a new window there and the rest of the work is done in the render process. Should I think of it as the server to my client or come kind of interface to my OS? Should i have my DB connection in the main and load the files there? Or is it only soposed to be some kind of window manager?


See this topic for my answers to most of these questions :grinning: