Page 1 of 1

(fixed) main_background vanishes during save

Posted: Mon Nov 26, 2018 12:45 pm
by Gambit37
In both v0.69 and the beta of v0.70, the inventory_info.main_background image vanishes when you click on the Save icon. It reappears after saving, or cancelling the save.

I went back and looked at my old stuff that used a background and that was fine (using DSB 0.55).

Re: (not a bug) main_background vanishes during save

Posted: Mon Nov 26, 2018 7:47 pm
by Sophia
This was an intentional change.

Re: (not a bug) main_background vanishes during save

Posted: Mon Nov 26, 2018 8:10 pm
by Gambit37
Hmm,ok, but I don't understand that decision? Without a full permanent background, it's not possible to make a fully integrated UI replacement. Is there another way to achieve this? If not, then sadly I will have to junk the last three months work on my project and give up. :cry:

Re: (not a bug) main_background vanishes during save

Posted: Mon Nov 26, 2018 10:19 pm
by Sophia
If you want the gory details, I can provide them, but the short answer is that a combination of bad design decisions made 12 years ago and DSB being stuck using obsolete graphics technology mean that I can't guarantee your frame rate won't drop horribly if it tries to draw a background while rendering the system UI. A real fix would involve enough re-engineering that it would be a waste of time for something as obsolete as DSB anyway-- I'd be better off just upgrading to a modern graphics API. So, I decided the easiest solution would be to just turn it off.

If it's really a dealbreaker for you, I can add an ignore_framerate_optimizations flag to inventory_info that you can set to true... but then you can't complain if you actually run into that problem down the line. :P

Re: (not a bug) main_background vanishes during save

Posted: Mon Nov 26, 2018 10:51 pm
by Gambit37
Since I would like others to eventually play my creation, it would seem wrong to ignore the performance issue. Would it be possible to support a single colour in the background, or does that have the same problems?

Re: (fixed) main_background vanishes during save

Posted: Tue Nov 27, 2018 2:43 am
by Sophia
Not necessary. I found a better fix anyway.

Re: (fixed) main_background vanishes during save

Posted: Tue Nov 27, 2018 12:29 pm
by Gambit37
Wow, awesome, that's fantastic thank you! :D