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.


Topics - scorcher24

Pages: [1]
1
System / timeGetTime() replacement?
« on: March 29, 2011, 02:03:04 pm »
Is there any function in SFML that returns the same values than timeGetTime()?
The miliseconds which have passed since application start?
sf::Clock() does not work very well with my existing code. I have borked animations. They are either damn slow or I have very sudden movement. With timeGetTime() everythings okay.
For explanation:
I used SDL_GetTicks() before. But I wanted to replace SDL with SFML since it comes with Network and better Audio.

2
Window / Wrong Usage?
« on: March 26, 2009, 02:44:39 am »
Hi there.
Many People told me, that sfml is kicking Ass when it comes to handle OS-Specific stuff. So I gave it a shot and tried to integrate SFML into my existing Library and Application. Since my code is very modular, I can just replace the current window-class with sfml (pure virtual classes as front-end to be more detailed ).
So, I have put up a new Window and tried to get my pure OpenGL-Code running, but I failed... I can't get a context where I can render my stuff properly. I have tried to stick to the tutorials, but it doesn't work.
Any Hints you might have for me?
rya.

3
Graphics / Probably Memory Leak with sf::RenderWindow
« on: March 26, 2009, 02:31:14 am »
Adding this code to my program while using WindowsXP SP3 and Visual Studio 2008 Express results in a memory leak.
Code: [Select]

sf::RenderWindow m_window;


Code: [Select]

Detected memory leaks!
Dumping objects ->
{123} normal block at 0x016A6660, 20 bytes long.
 Data: <`fj `fj `fj     > 60 66 6A 01 60 66 6A 01 60 66 6A 01 CD CD CD CD
{122} normal block at 0x016A6548, 216 bytes long.
 Data: < u              > AC 75 86 00 01 00 00 00 01 00 00 00 00 00 00 00
{121} normal block at 0x016A6508, 4 bytes long.
 Data: <Hej > 48 65 6A 01
Object dump complete.


Memory report is achieved with:
Code: [Select]

#if defined (_DEBUG) && defined(_MSC_VER)
            long flag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
            flag |= _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF;
            _CrtSetDbgFlag(flag);
#endif /* _MSC_VER && _DEBUG */

I have debugged my own application from begin() to end() and if I remove the sfml-code, there are no more leaks. So I can safely say, that it is coming from sfml.
regards.

Pages: [1]
anything