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

Pages: [1]
1
General / taskbar slow
« on: August 21, 2011, 08:21:36 pm »
There is a weird problem with sfml 2.0 that when your App (sfml) is open and click on another program or click 2 times in SFML program to minimize in taskbar it takes ~3 seconds to take effect.

building examples on last 2.0 for mingw and visual 2010 does the same thing. (static)

I tested this in 1.6 and this doesn't occur


minimal code
Code: [Select]
#include <SFML\Graphics.hpp>

int main()
{
sf::RenderWindow App(sf::VideoMode(200, 300), "test");
sf::Event Event;
while(App.IsOpened())
{
if(App.PollEvent(Event))
{
if(Event.Type == sf::Event::Closed)
{
App.Close();
}
}
}

return 0;
}


any idea what it can be?

2
General discussions / sf::Texture implemented in SFML 2
« on: August 07, 2011, 05:25:12 am »
is it me or i cannot compile this build? :roll:

LaurentGomila-SFML-b718464\include\SFML\Graphics\Font.hpp|243|error: declaration of 'sf::Texture sf::Font::Page::Texture'|

LaurentGomila-SFML-b718464\include\SFML\Graphics\Texture.hpp|48|error: changes meaning of 'Texture' from 'class sf::Texture'|


oh nevermind, changed Texture to sf::Texture in Font (243) and errors gone :twisted:

3
SFML projects / [RELEASED] SFMLUploads.Org
« on: July 02, 2011, 03:19:18 am »
nice, I like it!

is it possible to delete files we uploaded?

4
SFML projects / SFML / Box2D Demo
« on: July 02, 2011, 02:58:56 am »
Here is a little demo using SFML + Box2D + 700 objects




Alt, Shift or Ctrl and Left mouse click creates dynamic object, Right click creates fixed object

you can move arround with the selected box with arrows keys (not static ones). shift + left or right arrow key
to selecte next or prev boxes.

Numpad 5 disable gravity,  Numpad 4,6,8,2  adds gravity


Download link:
https://legacy.sfmluploads.org/index.php?page=view_file&file_id=24

I hope you likes it  :roll:


Thanks SFML upload  :D

5
General / [Solved] static linking in linux?
« on: June 09, 2011, 10:00:38 pm »
Quote from: "Laurent"
and setup your compiler, linker and library loader to know about this particular path.


that would require root access right?

6
General / [Solved] static linking in linux?
« on: February 17, 2011, 02:12:12 pm »
Quote from: "Laurent"
Installing SFML is just copying the libraries (all the *.so.1) to either /usr/lib or /usr/local/lib, and creating the symbolic links libsfml-xxx-.so pointing to libsfml-xxx-.so.1.

Take a look at the "install" target of the makefiles for the corresponding commands.


sorry for ressurecting an old thread but I have a question on this...

what about if I build it in my pc and want to test it in University pcs with no root acess? (not possible to enter in usr folder)

impossible?

7
General / Help - lag
« on: February 12, 2011, 04:45:29 pm »
hahahah  dam it.  found out the solution.

my card was set to 16 bits and the .exe I build was set to 32 bits and that made the fps drop...

if thats the case, why the .exe that came with the source didnt had slow down with 16 or 32 bits?

and also, is this the correct way to move a sprite?

Code: [Select]
#include <SFML/Graphics.hpp>

int main()
{
    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
    App.SetFramerateLimit(60);


    sf::Image Image;
    Image.LoadFromFile("Xis.png");

    sf::Sprite Sprite(Image);

    while (App.IsOpened())
    {
        // Process events
         sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Move the sprite
        if (App.GetInput().IsKeyDown(sf::Key::Left))  Sprite.Move(-4, 0);
        if (App.GetInput().IsKeyDown(sf::Key::Right)) Sprite.Move( 4, 0);
        if (App.GetInput().IsKeyDown(sf::Key::Up))    Sprite.Move(0, -4);
        if (App.GetInput().IsKeyDown(sf::Key::Down))  Sprite.Move(0,  4);


        // Clear screen
        App.Clear();

        // Display sprite in our window
        App.Draw(Sprite);

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


becuase in Allegro it seems that moving a sprite is better

8
General / Help - lag
« on: February 10, 2011, 04:30:07 pm »
sorry for you time guys, going to try allegro for 2d graphics and use SFML for easy sound/sockets/threads functions

9
General / Help - lag
« on: February 09, 2011, 08:08:38 pm »
It slows when I add picture =/.  the 3d square in open gl tutorial site (without picture) runs perfectly. when I use the SFML-1.6 sample folder of opengl that has picture in it, it lags =/

10
General / Help - lag
« on: February 09, 2011, 07:18:14 pm »
yes, win xp

the weird thing is that devC++ with SDL is also normal (no fps drop)

11
General / Help - lag
« on: February 09, 2011, 06:25:15 pm »
geforce 6200

well, the exe I build has slow down and the exe I got from the source is normal =/

12
General / Help - lag
« on: February 09, 2011, 05:29:21 pm »
release and debug gives the same problem

is it becuase SFML is v 1.6?

13
General / Help - lag
« on: February 09, 2011, 04:16:57 pm »
Hello, I'm new here and I need to know whats wrong with code blocks.
I first made a simple 2D game that  had a background and 1 image that will move if i press some of the arrows key. the problem is that it gets slow if there is a background. if i take it off, the moving image works well.

with this problem I downloaded this really nice snake game with source http://www.sfml-dev.org/forum/viewtopic.php?t=1047 to see whats wrong.  I first ran the .exe and it runs well (no fps drop) then I created an empty project and build the snake source. When I launch it the same fps drop happend. I compare the .exe from the source and the .exe from code block, the source had 1,53 mb and from code block was 1,72 mb.

Can it be the compiler (GNU GCC Compiler)? or a different project settings?

Thanks

Pages: [1]
anything