PDA

View Full Version : tbgl_usevsync info



ErosOlmi
08-10-2008, 11:53
Petr,

I use a WINXP OS emulated under vmWare.
tbgl_usevsync gives error on emulated OS while works under standard OS. It seems like tbgl_usevsync is not present but TBGL is exactly the same.

Is tbgl_usevsync keyword always present or you check the GPU and load tbgl_usevsync keyword depending on the GPU?

Thanks
Eros

Petr Schreiber
08-10-2008, 15:44
Hi Eros,

TBGL_UseVsync is always present.
In case it fails, it should return non-zero value.

Which error does it produce?

I will check the code again to see where the problem could have its roots.


Thanks and sorry for problems,
Petr

Petr Schreiber
08-10-2008, 16:01
Hi Eros,

I found the possible problem.
Try attached DLL.

The problem was in fact that if the function was not supported, I exited before parsing the parameter. That confused parser and caused problem.


Petr

ErosOlmi
08-10-2008, 16:02
Under WIN98/ME Core engine seems not able to find the keyword.
Just commenting that line all is working as usual even latest examples on particle system.

I thought you was creating the keyword only if it was possible to use vsync.

Of course I testing under virtualized OS so GPU is simulated via software.

Ciao
Eros

Petr Schreiber
08-10-2008, 16:03
So the fix didn't work?


Petr

ErosOlmi
08-10-2008, 16:04
Thanks Petr.
I will test this evening but I'm sure you solved the problem ;)

Ciao
Eros

ErosOlmi
08-10-2008, 16:04
We typed at the same time :D
We are too fast ...

Petr Schreiber
08-10-2008, 16:06
;D ok

One thing - could you run openGL test script (http://community.thinbasic.com/index.php?topic=668.msg3885#msg3885) on that virtual machine?


Petr

ErosOlmi
08-10-2008, 16:15
Petr,

I just tested new TBGL and confirm all is fine now.

The following is the report I get from inside WINME emulated under vmWare:


Vendor: MICROSOFT CORPORATION
Renderer: GDI GENERIC
OpenGL: 1.1.0
Extensions( 3 ):
GL_WIN_SWAP_HINT
GL_EXT_BGRA
GL_EXT_PALETTED_TEXTURE

Ciao
Eros

Petr Schreiber
08-10-2008, 16:27
3 extensions, now that is something :D

Thanks a lot for the tests - they mean OpenGL runs in software implementation by MS.
Is it possible to use real graphic drivers in VMWare?


Thanks,
Petr

ErosOlmi
08-10-2008, 18:29
No.
GPU is recognized as "VMware SVGA II" so it is an emulated one.
Drivers can come only from VMware.

Petr Schreiber
08-10-2008, 18:36
Too bad :),

I guess drivers are too low level to be used in emulated PC.


Thanks,
Petr

Michael Hartlef
14-12-2008, 22:55
Under VitualBox I get the same info like Eros.

Petr Schreiber
15-12-2008, 12:55
Thank you Mike,

TBGL has been fixed to go around this issue, so in latest ThinBasic TBGL_UseVsync should not cause any trouble.


Petr