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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - werdy666

Pages: [1]
1
Graphics / Debugging is slow at first. then speeds up
« on: February 02, 2012, 12:07:47 pm »
Quote from: "Laurent"
This seems to be a common problem, but it's probably a driver issue. I mean, there is no such code in SFML
Code: [Select]
if (debug && (elapsedTime < 10))
    runSlow();
else
    runFast();


Lets hope there is no code in there like that! :)

I updated to the latest Nvidia drivers, also updated to the latest SFML 2.

one thing i did notice is this bit of code....

Code: [Select]

oss << playeronehealth;
GameText.SetString(oss.str());
GameText.SetPosition(1100,420);
App.Draw(GameText);
oss.str("");
oss << playeronescore;
GameText.SetString(oss.str());
oss.str("");
GameText.SetPosition(1100,440);
App.Draw(GameText);


if i comment that out it does sit on 100+ fps.

with it in there it sits on 8fps...

This code runs every frame. Is the StringStream that heavy to destroy my framerate???

thanks

Werdy666 :P  :?

2
Graphics / Debugging is slow at first. then speeds up
« on: February 02, 2012, 06:46:09 am »
Hi,

I am using SFML 2.0 (downloaded 12th January 2012)

What I am finding is that when i first run my program in vs2010 i am getting really low frame rates, in the vicinity of no more than 10fps.

after afew minutes of this it all of a sudden go back to the normal fps of around 100fps.

I am drawing a tilemap with sprites approx 961 onto a rendertexture.
which then gets displayed each frame onto the screen.

I have tried using a profiler called very sleepy which indicates that 90% of the time the new and delete operators are being called in SFML-Graphics-d.dll

I don't understand why at first it runs slow then speeds up after time. I personally can run it, and leave the computer and it goes fast.

One other thing I have noticed is that if I run the perfomance profiler in VS2010, it runs at 100fps straight away. if i then run it again through debug, it starts out at 8fps...


any hints or tips would be gratefully accepted! maybe this is a known problem I haven't come across in the forums??

Thanks

werdy666 :twisted:

3
Graphics / Maximised Window Event Type???
« on: April 27, 2011, 05:39:23 pm »
bug in my Code! :oops:

thanks for your help Laurent!

4
Graphics / Maximised Window Event Type???
« on: April 26, 2011, 06:15:15 pm »
Windows 7 64bit.

5
Graphics / Maximised Window Event Type???
« on: April 26, 2011, 04:15:41 pm »
Hi,

Just have been playing around with keeping my sprites the same size regardless of what the user changes the window size to. Works perfectly ok when i manually resize the window.

Problem is that when I hit maximise on the window it isn't recognised as a resize event.

Am I missing something? I have searched the forums and the docs for version 1.6 and 2.0 (currently using SFML 2.0)

Thanks

werdy666 :D

Pages: [1]