[Vm-dev] linux thread priorities

Igor Stasenko siguctua at gmail.com
Thu Feb 4 09:13:02 UTC 2010


On 4 February 2010 07:56, Andreas Raab <andreas.raab at gmx.de> wrote:
>
> Igor Stasenko wrote:
>>
>> Wow.. 100ms? Sounds like you can't have more than 10 frames per
>> second. Weird. Can it be because it waits for vsync?
>
> No it's because it got stuff queued up that the GPU hasn't processed yet.
> SwapBuffers() forces it to process the pending stuff. What we've done to fix
> this is to issue a fence and a flush to let the GPU tell us when it's done
> processing without blocking. This brings the time in SwapBuffers() down but
> it requires that your GPU and drivers support the fence instructions (not
> all do; in particular Intel doesn't). I have no clue what the situation on
> Linux is but I expect the worst.
>
Hmm.. i still think this is too much.. because i can't imagine the GL
pipeline being that slow on modern hardware.
Simply because you can't get 300 fps by having 100ms delays :)

> Cheers,
>  - Andreas
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list