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

Pages: [1]
1
Window / Re: Strange window.pollEvent(event) performance problem - Win 8.1
« on: November 19, 2013, 06:14:52 pm »
No, I don't. Even if I leave the loop empty, the problem occurs. If I delete it - it's fixed.

2
Window / Re: Strange window.pollEvent(event) performance problem - Win 8.1
« on: November 17, 2013, 06:20:08 pm »
I have no gamepad/joystick and my game doesn't support it ;)

3
Window / Strange window.pollEvent(event) performance problem - Win 8.1
« on: November 17, 2013, 05:27:16 pm »
Hi!

Sometimes when I run my game it freezes for about ~200 ms every ~600 ms. Deleting
while (window.pollEvent(event))
fixes the problem. The problem isn't present everytime. Sometimes when I run my game it works normal. If the problem appears I usually run the game(or any other SFML application!) as administrator and this fixes the problem.

My system is Windows 8.1 Pro and I use Visual Studio 2013 for Windows Desktop.

Sorry for bad english!  ;D

4
General / Error while closing program
« on: July 04, 2013, 11:02:46 pm »
Hi!
I've made a simple function in SFML 2.0 to write some text on screen:
Code: [Select]
sf::Text txt(char* text, int size, sf::Color color, int x, int y)
{
sf::Text txt;
txt.setFont(font);
txt.setString(text);
txt.setCharacterSize(size);
txt.setColor(color);
txt.setPosition(x, y);

return txt;
}
Of course it's displayed this way:
Code: [Select]
window.draw(txt("text", 12, sf::Color::White, 0, 0));
It's causing program to crash while it's closing:
Quote
Unhandled exception at 0x76fb59a6 in Offensive.exe: 0xC0000005: Access violation reading location 0xfeeefef6.

I know that I made a stupid mistake  ;D Please help me :)

Pages: [1]