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 #60000 is a reply to message #59968] Mon, 03 July 2023 22:58 Go to previous messageGo to previous message
devilsclaw is currently offline  devilsclaw
Messages: 74
Registered: August 2022
Member
I found adding my only clipping back in pushed it up to 61 FPS even spanning across all through monitors so the clip done by Draw still takes time to do even if its not trying to render it to screen.

void frm_main::_icons_paint2(Draw& w, int x_offset, int y_offset, bool _render_everything)
{
  rect_f visible = rect_f(scroll.x, scroll.y, GetSize().cx, GetSize().cy);
  for(auto it = icons_zorder.rbegin(); it != icons_zorder.rend() ; it++) {
    icon_t* icon = *it;
    rect_f ricon;

    ricon = icon->get_bounds();

    if(_render_everything || ricon.intersects(visible)) {
      w.Clip(GetSize());
      icon->icon_paint2(w, x_offset, y_offset);
      w.End();
    }
  }
}
 
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 Aug 27 11:12:30 CEST 2025

Total time taken to generate the page: 0.06596 seconds