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

Author Topic: Polling for events drastically lowers frame rate  (Read 17188 times)

0 Members and 1 Guest are viewing this topic.

Dungeon Throne Dev

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Dungeon Throne Official Website
Re: Polling for events drastically lowers frame rate
« Reply #15 on: February 01, 2017, 06:49:28 pm »
I still have this issue.
At least that´s what I think.
The fps are stable only when i comment the window.pollevent(event); function.
I cant find the src/SFML/Window/Window.cpp file.
Where should it be?
I´m kinda new  ::)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Polling for events drastically lowers frame rate
« Reply #16 on: February 01, 2017, 08:06:16 pm »
You will have to download the source code on the download page or GitHub.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Dungeon Throne Dev

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Dungeon Throne Official Website
Re: Polling for events drastically lowers frame rate
« Reply #17 on: February 01, 2017, 08:47:18 pm »
So, I downloaded  and commented it.
I´m not sure how to compile this ._.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Polling for events drastically lowers frame rate
« Reply #18 on: February 01, 2017, 08:51:47 pm »
That's why there are official tutorials. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Dungeon Throne Dev

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Dungeon Throne Official Website
Re: Polling for events drastically lowers frame rate
« Reply #19 on: February 01, 2017, 11:56:18 pm »
Thanks you for replying me.
I tried this guide but I´m still lost. :'(
http://www.sfml-dev.org/tutorials/2.4/compile-with-cmake.php


Dungeon Throne Dev

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Dungeon Throne Official Website
Re: Polling for events drastically lowers frame rate
« Reply #21 on: February 04, 2017, 03:46:51 pm »
My bad for not explaining.
I´m using Visual Studio to compile and run code, I´m not using MinGW.
As far as I know I have to just select the source code of SFML in CMake, configure it if I want and just Generate it.
The thing is, when I do that, the DLL dont generate.

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Polling for events drastically lowers frame rate
« Reply #22 on: February 07, 2017, 09:57:53 am »
you have to tell cmake to generate a ms solution or project or something
 
the link I gave is telling cmake to generate a ningw solution 

you'll have to look at the cmake tutorial to figure out how to generate ms solution

once cmake generates a ms solution you compile that solution to create your dll

go here
http://www.sfml-dev.org/tutorials/2.4/compile-with-cmake.php

read
"With Visual C++, you can either run CMake from the "Visual Studio command prompt" available from the start menu, or run the vcvars32.bat batch file of your Visual Studio installation in the console you have open. The batch file will set all the necessary environment variables in that console window for you."

and the sections after that