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

Pages: 1 2 [3]
31
Graphics / qimage to sf::image conversion
« on: May 25, 2011, 10:34:35 pm »
@Lokk
With your method i have to include the whole qt-opengl-library...

instead i convert using qimage.convertToFormat(QImage::Format_ARGB32);
like laurent said...

works like a charm <3

Code: [Select]
qimage.convertToFormat(QImage::Format_ARGB32);
image.LoadFromPixels(qimage.width(), qimage.height(), reinterpret_cast<const sf::Uint8*>(qimage.bits()));


much thanks to both of you :)

32
Graphics / qimage to sf::image conversion
« on: May 25, 2011, 09:22:46 pm »
hi
i need help to convert a qimage to an sf::image...
i just cant get it to work...

yeah, i can read and set every pixel, but you cant read the alpha of an pixel from an qimage :O

33
It cant be an Hardware Problem... See i can turn Aero on again and i still get high framerates! But well i use an Nvidia Geforce 9800GTX+

I think it an initializon Problem


Edit: Had my Computer in stand by.... Now it just works fine oO
Edit2: Seems like if Winamp is playing for some time i will get the problem

Edit3: Now WInamp has no influence on this oO

Edit4: This time even Aero has no influence -.-


Edit5:

So i now am able again to get high framerates (3000-3500 xD)

And i think sfml can use software render.. because if i have the 0-2fps bug my cpu DIES! even with the sleep command....

now, ( im able to get 3000-3500fps!) my cpu stays aut max 30% even without the sleep command....

34
Hi,
A wrote a basic App that only draws 4 Sprites...
I "killed" 100% CPU usage with "sf::Sleep(0.01);" if thats important somehow...
Well anyways, if I have turned on Windows Aero i get only 0-2 FPS!!!
But if i  turn it off i get high framerates!

I can turn on Aero again after my App was started and FPS stay high, so i think SFML just wont detect my GPU wehn Aero is turned on

So is there any way to "force" SFML to use my GPU?
And if not how to turn off Aero automatically before the SFML Window opens?

Sorry if my english is poor...

Pages: 1 2 [3]