Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Loading Images
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Slick2175
USA (27 posts) Bio
|
| Date
| Sun 07 Dec 2014 06:45 AM (UTC) |
| Message
| | If I make a database of images for mushclient to use in miniwindows would I notice a performance increase with loading images? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sun 07 Dec 2014 07:37 PM (UTC) |
| Message
| | Compared to what other method? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Slick2175
USA (27 posts) Bio
|
| Date
| Reply #2 on Sun 07 Dec 2014 07:44 PM (UTC) |
| Message
|
for a in db:nrows([[SELECT * FROM images WHERE name = 'sword']]) do
WindowLoadImageMemory (win, "im", a.image)
WindowDrawImage (win, "im", 20, 20, 0, 0, 1) -- straight copy
end
Compared to just using the standard. just trying to figure out the fastest way of loading and drawing images.
WindowLoadImage(win, "img", etc)
WindowDrawImage(win, etc
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Sun 07 Dec 2014 08:50 PM (UTC) |
| Message
| | I imagine the database would be slightly slower, as it has to look the data up. However it would save having to open the file. Whether you would notice the difference it is hard to say. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
15,003 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top