Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Poor Performance of Text Drawing on Linux (Easily Fixed)  (Read 7835 times)

0 Members and 5 Guests are viewing this topic.

JoshParnell

  • Newbie
  • *
  • Posts: 7
  • Graphics :)
    • View Profile
    • Limit Theory
Re: Poor Performance of Text Drawing on Linux (Easily Fixed)
« Reply #15 on: June 12, 2013, 10:50:17 pm »
That was fast, thank you!  ;D

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Re: Poor Performance of Text Drawing on Linux (Easily Fixed)
« Reply #16 on: June 12, 2013, 10:51:12 pm »
Great.

The part of my code that was using getSize seems to be like 4 to 5 times faster now.
TGUI: C++ SFML GUI

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Poor Performance of Text Drawing on Linux (Easily Fixed)
« Reply #17 on: June 13, 2013, 04:58:19 pm »
Ah, right.

I did the modification. Enjoy :)

Any chance of pushing a recompiled version of CSFML (with the change) to the .NET repository? Consider the users of the .net bindings on mono/linux  ;) Or will you make us recompile CSFML?
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Poor Performance of Text Drawing on Linux (Easily Fixed)
« Reply #18 on: June 14, 2013, 08:04:01 am »
I usually don't update CSFML in the .Net repo when there's no API change. I could do it but I'm really really busy these days :-\
Laurent Gomila - SFML developer

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: Poor Performance of Text Drawing on Linux (Easily Fixed)
« Reply #19 on: June 14, 2013, 08:24:00 am »
Do I understand correctly that this fix improves the overall performance of every draw call (especially on Linux)?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Poor Performance of Text Drawing on Linux (Easily Fixed)
« Reply #20 on: June 14, 2013, 08:38:16 am »
No, the function is called by draw only if the current view has changed.
Laurent Gomila - SFML developer