Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Font and Image rendering slow
Re: Font and Image rendering slow [message #60040 is a reply to message #59968] Fri, 14 July 2023 17:18 Go to previous messageGo to previous message
devilsclaw is currently offline  devilsclaw
Messages: 72
Registered: August 2022
Member
So here is a new full demo.

I added a new hot key which is F4 which will draw lines from the first icon to the rest. with that on and with F1 on the FPS for me drops to 3 FPS

I have implemented some of the things suggest but I decided to not do the image cache since once you have a bunch of images cached it actually hurts performance trying to get the correct image.

I did implement a simple cache which is if there is no change the keep current rendered image if there is a change then draw a new one.

I also faked the transparency effect which helped the speed a a lot.

I also switched away from iterators in the draw code.

I also changed how the scaling works.

The performance is much better then it used to be. If you happen to have anymore suggestions on how to get more speed that would be awesome.
  • Attachment: upp_demo.zip
    (Size: 19.77KB, Downloaded 84 times)

[Updated on: Fri, 14 July 2023 17:18]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mouse Interaction with UI causes Paint to not function
Next Topic: Option Label on Left Side draw
Goto Forum:
  


Current Time: Wed Apr 30 08:03:07 CEST 2025

Total time taken to generate the page: 0.00908 seconds