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

Author Topic: Speed test  (Read 7376 times)

0 Members and 1 Guest are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: Speed test
« Reply #15 on: May 24, 2012, 12:33:50 pm »
I don't have a profiler in my visual studio express  :'(
Hmmm is there a profiler in Visual Studio? I'm using the Ultimate version although I don't really use its power. For profiling there are free options, like the AMD CodeAnalyst Performance Analyzer.
Although it's from AMD for AMD chipsets it also works fine on intel proccessor. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

NinjaFighter

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://www.sebagames.wordpress.com
Re: Speed test
« Reply #16 on: May 26, 2012, 08:36:39 am »
Actually, I can said that I see some tiny perfomance differences between my SFML2 versions: one of them is that sets window's maximum fps works better than vsync in the new version. For example, I have a Game running at 100~120 fps, I notice that if I activate vsync, the movement looks very bad, otherwise, if I set maximun fps, it looks much better, but if I count the real frames per second, I notice that stuck at 61~63, but not 60. (instead of, the old version works better with vsync, instead limit the fps up to 60)

Another strange thing that I have figured, is the sound of my video card fan cooler, seems like the new version, doesn't overheat mi videocard, but in my game, works more slow in certain circumstances.

I found my bottleneck, but I don't know what is the reason of this slowdown. I write various minimal tests, but I could never show a slowdown, even... the new version works faster on minimal repetitive codes.

Anyway, it's been four days that I cannot figure how to show us,( in a minimal code) that the new SFML works more slow in my game, but for some strange reason, only in my game, and not in my minimal tests =S

I only want to say, that is when (in my game), I set a shader and draw sprites in a surface with it. There's no "bad practices" in my code, I repeat that my game works perfect on olds versions of SFML2. I'm very frustrated now  :-\

If you can figure a theory that can explain what can be, please tell me, because I'm very confused, and I cannot figure how to fix it.
« Last Edit: May 26, 2012, 08:39:39 am by NinjaFighter »

SuperV1234

  • SFML Team
  • Full Member
  • *****
  • Posts: 188
    • View Profile
Re: Speed test
« Reply #17 on: May 26, 2012, 05:38:08 pm »
Upload the source code if it's not gigantic - I'd like to take a look at it

NinjaFighter

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://www.sebagames.wordpress.com
Re: Speed test
« Reply #18 on: May 27, 2012, 03:23:41 am »
It's gigant, believe me  ;D
Anyway, I figure that I can live with that, however... if I deactivate vsync on window mode, the framerate don't suffer too much, and I think that my videocard be grateful, because I can't listen my fan cooler with this new version... I can modify the matrix too, a and draw with vertex. I hope I can find the answer someday, but at least, the performance is ok for my game if I use a fps limit, instead of vsync on window mode.