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

3
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]