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 - TmCrafz

Pages: [1]
1
Window / Re: Window not responding you may choose to wait
« on: October 03, 2016, 02:18:15 pm »
I have the same problem as dulsi. The message that the window is not responding is shown although all is working well. If i said wait all works perfect. I do handle events every frame. The solution of dulsi fix the problem for me. I poll events direct after creating the window and then I load the needed stuff (Not very much, only a Font and creating some sf::Text). Im using Ubuntu 16.04 and SFML 2.3.2 from the Ubuntu repositories.

2
General / CodeBlocks cannot use debug linker settings
« on: February 09, 2016, 04:31:51 pm »
Hello
Im using CodeBlocks on Ubuntu 14.04LTS.
I have installed sfml from the official repository.
Now i want to set up sfml in codeblocks.
But when I add sfml-system-d, sfml-window-d and sfml-graphics-d to the Debug Linker settings CodeBlocks says by building the Project:
||=== Build: Debug in SFMLTemplate (compiler: GNU GCC Compiler) ===|
ld||cannot find -lsfml-system-d|
ld||cannot find -lsfml-window-d|
ld||cannot find -lsfml-graphics-d|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

When i removes -d everywhere there are no problems.
Is that a problem when I dont use the -d Settings?



3
General / Re: Tetris clone lag after moving window
« on: July 14, 2014, 11:47:14 pm »
Thanks for the answers.

Show your code where you handle delta time. Or maybe I could try to guess.... zsbzsb pulls out his crystal_ball.exe
I dont use delta time in this game.
I have used frapes to check the frames.

I have find the code who is the problem.
The for loop is to much, and needs to much performance and i lose much fps with this.
But I dont understand why this effect is much higher after moving the window.

bool isStoneOnStoredStone(sf::RectangleShape storedStones[10][22], Stone &actualStone)
{
        for (unsigned y{ 0 }; y != 22; ++y)
                {
                        for (unsigned x{ 0 }; x != 10; ++x)
                        {
                                if ((actualStone.shapeA.getPosition().y + 20.f == storedStones[x][y].getPosition().y && actualStone.shapeA.getPosition().x == storedStones[x][y].getPosition().x) ||
                                        (actualStone.shapeB.getPosition().y + 20.f == storedStones[x][y].getPosition().y && actualStone.shapeB.getPosition().x == storedStones[x][y].getPosition().x) ||
                                        (actualStone.shapeC.getPosition().y + 20.f == storedStones[x][y].getPosition().y && actualStone.shapeC.getPosition().x == storedStones[x][y].getPosition().x) ||
                                        (actualStone.shapeD.getPosition().y + 20.f == storedStones[x][y].getPosition().y && actualStone.shapeD.getPosition().x == storedStones[x][y].getPosition().x))
                                {
                                        return true;
                                }
                        }
                }      
        return false;
}
 

4
General / Tetris clone lag after moving window
« on: July 14, 2014, 08:48:36 pm »
Hi  :)
I have a little problem with my Tetris clone.
When I move the Window, often my game begin to lag. The framerate fall down to 2-4 fps.
I don´t have any idea what can be the reason of the problem and which part of my code can be part of this.
In my earlier games I didn´t had problems like this.
I use Windows 7, Visual Studio Express 2013 and SFML 2.1.
Thanks for help
Feuerstern


Pages: [1]
anything