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

Pages: [1]
1
General / SFML is really slow on computer 1 but not computer 2
« on: August 02, 2015, 04:22:07 am »
As the topic say I have some strange problems with SFML. This problem is persistent on computer 1 with SFML 2.1, 2.2 and 2.3.

Computer 1 have a
AMD Athlon II X2 250 (3.00 GHz) CPU
8GB RAM
Win7 64-bit
ATI Radeon HD 4600 card

When compiling even the basic example that show the green circle the program will stutter, every ~1 second the window will "freeze" for a half a second.

Computer 2 that is a laptop with
Intel Celeron CPU N2830 (2.16GHz)
4GB Ram
Win8 64-bit
Intel HD Graphics with ~1.7GB total memory (according to DXDiag).

When I try the exact same code and executable on computer 2 there is no problem what so ever. So it doesn't seem to be a problem with the code since even the "hello world" SFML example is stuttering, so do anyone have any suggestion on what I can try to fix this problem?

2
General / Re: SFML Blueprint build problems in C::B
« on: June 10, 2015, 10:39:56 pm »
The image is updated, I rebuilt again when I noticed that, and got a new error.
This seem to be C::B related though.

3
General / Re: SFML Blueprint build problems in C::B
« on: June 10, 2015, 10:17:25 pm »
No, I had forgot to update it on my second machine.
I updated to 13.12 and re-compiled SFML and the test project.

One problem I see now is that d:/program/codeblocks doesn't exist. I reinstalled C::B on C:\ but for some reason it is still looking on D:\ I cannot figure out what to try. I did reboot the computer after the installation just in case but the problem is persisting.



4
General / Re: SFML Blueprint build problems in C::B
« on: June 10, 2015, 01:59:24 pm »
Yes, both are built in C::B 10.05.
And I use the source for SFML 2.2 to build all the SFML stuff.

5
General / Re: SFML Blueprint build problems in C::B
« on: June 10, 2015, 01:22:46 pm »
This is the result from the debug with a breakpoint

6
General / Re: SFML Blueprint build problems in C::B
« on: June 09, 2015, 10:54:53 pm »
I added output after each line in the code, and it crashed here:
Code: [Select]
sf::RenderWindow window(sf::VideoMode(400,400),"01_Introduction");I have no clue how to build a debug version with the CMAKE, or is that done in the C::B project CMAKE creates for me? I have tried the dll-files in release, and debug. I have my graphics driver up to date.

*EDIT*
I guess I change "Release" in CMAKE to "Debug" so I'll try that.

*EDIT 2*
I guess I built the debug correctly, but I still have the same problem that it crashes on the same line as before.

7
General / Re: SFML Blueprint build problems in C::B
« on: June 09, 2015, 10:35:25 pm »
Yes, if I didn't I would get another error that say x.dll is missing.

8
General / SFML Blueprint build problems in C::B
« on: June 09, 2015, 09:50:57 pm »
I bought the book "SFML Blueprint" today and in the book the reader was tasked with compiling SFML 2.2 with CMAKE and to compile the basic "make a circle appear" test program. The code compiles but when the application starts it dies with a "X.exe has stopped working. Windows is looking for a solution" dialog popping up.

CMAKE window

and the files it gave me


I followed the steps and compiled SFML and opened C::B, and followed the steps the book said me to follow.




The code example used is from the book and looks like this:
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>

int main(int argc,char* argv[])
{
    //the window use for the display
    sf::RenderWindow window(sf::VideoMode(400,400),"01_Introduction");
    //set the maximum frame per second
    window.setFramerateLimit(60);

    //construct a circle
    sf::CircleShape circle(150);
    //set his color
    circle.setFillColor(sf::Color::Blue);
    //set his position
    circle.setPosition(10, 20);

    //main loop
    while (window.isOpen())
    {
        //to store the events
        sf::Event event;
        //process events
        while(window.pollEvent(event))
        {
            //Close window
            if (event.type == sf::Event::Closed)
                window.close();
            //keyboard input : Escape is press
            else if (event.type == sf::Event::KeyPressed and event.key.code == sf::Keyboard::Escape)
                window.close();
        }

        //Clear screen
        window.clear();

        //draw the cirle
        window.draw(circle);

        //Update the window
        window.display();

    }

    return 0;
}
 
Anyone has any clue what I might have done wrong? My guess is that I made some error during the CMAKE process, but I have never used CMAKE before so I have no clue what I can try.

Pages: [1]
anything