Home » MODDING HQ 1.13 » v1.13 Bug Reports » r8452 - Shop Graphic - Almost stops game
|
Re: r8452 - Shop Graphic - Almost stops game[message #350721 is a reply to message #350720]
|
Thu, 24 August 2017 02:45
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
There is no graphic file anymore. As we now have all sorts of resolutions, this is now generated on the fly, as a plain grey background was deemed too ugly. What kind of resolution are you using? This is only generated once per exe usage and doesn't take more than a second for me with a 1024x768 resolution, subsequent calls of the menu are faster.
[Updated on: Thu, 24 August 2017 02:47]
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
|
Re: r8452 - Shop Graphic - Almost stops game[message #350726 is a reply to message #350722]
|
Thu, 24 August 2017 14:40
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
After sleeping over it, I've thought about this some more.
- The current method generates the picture on the first time it is used, afterwards pastes it on every refresh. Due to the nature of our graphics functions (in this case, I made them up on short notice) this is not very efficient. I can probably optimize this a bit further, but the problem will likely remain for older computers.
- As a solution, I will make the above behaviour optional (off by default) and fall back to the previous simple grey screen. Assuming DepressivesBrot builds his SCIs as usual, this will be in the next SCI, which will due be in ~a week.
- While generating the background from smaller pictures looks horrible, I could generate a very huge background instead, and 'cut out' a smaller piece of that to use as background - pasting an exisiting picture is done all the time anyway. However, I don' think we ever only partially use an exisiting picture (I don't mean drawing over pictures, I mean only drawing a part of a picture to begin with), so I'll have to rig this up. In case this doesn't work, back to step 2.
- For now, in your case you can try to see whether picking a lower resolution will ease the problem. I know, not exactly a satisfying solution, but, well, the cavalry is on its way
[Updated on: Thu, 24 August 2017 14:41]
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
|
Re: r8452 - Shop Graphic - Almost stops game[message #350754 is a reply to message #350734]
|
Sat, 26 August 2017 18:51
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
Due to the considerable slowdown mentioned in this thread, as of r8457 & GameDir r2385, the trade menu background is no longer generated by random noise, but by cutting out a section of a much bigger picture.
This should remove any speed issues. The picture used has a size of 3088x2056. This should suffice for resolutions up to ~5544x3540. If you have a screen with a bigger resolution, you need to add a picture with higher dimensions. You are also spending waaaay to much money on monitors.
[Updated on: Sat, 26 August 2017 18:51]
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Mon Dec 02 17:36:16 GMT+2 2024
Total time taken to generate the page: 0.01207 seconds
|