_tommo_
Mod nerdcore
Messaggi: 5,900
Registrato: Nov 2008
Offline
|
#1
OpenGL è orrido su Windows!
Ma proprio tanto!
Il mio giuoco gira a 1000 FPS / 1 ms su OS X, nonostante sia un Hackintosh, e su Windows viene colpito dal morbo e gira a 35 FPS/ 28 ms... con punte di 98 ms durante lo streaming.
Quale potrebbe essere il motivo di tutta questa differenza?
Non sto usando shaders ne niente, solo VBO e un fottio di poligoni, quasi mezzo milione.
Idee?
Tommaso Checchi
< devlog | twitter | Dojo, a C++ game framework >
|
|
| 04-07-2011 18:32 |
|
lele85
Senior Member
Messaggi: 396
Registrato: Oct 2010
Offline
|
|
| 04-07-2011 18:35 |
|
_tommo_
Mod nerdcore
Messaggi: 5,900
Registrato: Nov 2008
Offline
|
|
| 04-07-2011 18:55 |
|
Revan1985
Fancazzista indie
Messaggi: 406
Registrato: Nov 2008
Offline
|
#4
RE: OpenGL è orrido su Windows!
xp, vista, vista sp1, vista sp2, seven, seven sp1 ?!?
quale sistema operativo hai ?!?
Galli Davide Francesco Maria
No man is an island, Entire of itself.
Each is a piece of the continent, A part of the main.
If a clod be washed away by the sea, Europe is the less.
As well as if a promontory were.
As well as if a manor of thine own Or of thine friend's were.
Each man's death diminishes me, For I am involved in mankind.
Therefore, send not to know For whom the bell tolls,
It tolls for thee.
john donne "for whom the bell tolls"
|
|
| 04-07-2011 19:01 |
|
_tommo_
Mod nerdcore
Messaggi: 5,900
Registrato: Nov 2008
Offline
|
#5
RE: OpenGL è orrido su Windows!
Windows Seven SP1 x64, ma ho provato anche su altri computer e va lento uguale o anche peggio.
Ho girato un profiler ed ecco i metodi più pesanti... il 95% del tempo è speso nel driver!
Belle le chiamate a "delay" che prende ben il 22%, e le chiamate a D3D assortite.
Tommaso Checchi
< devlog | twitter | Dojo, a C++ game framework >
|
|
| 04-07-2011 19:08 |
|
Revan1985
Fancazzista indie
Messaggi: 406
Registrato: Nov 2008
Offline
|
#6
RE: OpenGL è orrido su Windows!
driver ?!?
beh, i minchioni di microsoft l'avavan detto che sarebbero passate per d3d le opengl
Galli Davide Francesco Maria
No man is an island, Entire of itself.
Each is a piece of the continent, A part of the main.
If a clod be washed away by the sea, Europe is the less.
As well as if a promontory were.
As well as if a manor of thine own Or of thine friend's were.
Each man's death diminishes me, For I am involved in mankind.
Therefore, send not to know For whom the bell tolls,
It tolls for thee.
john donne "for whom the bell tolls"
|
|
| 04-07-2011 19:58 |
|
_tommo_
Mod nerdcore
Messaggi: 5,900
Registrato: Nov 2008
Offline
|
|
| 04-07-2011 20:01 |
|
Revan1985
Fancazzista indie
Messaggi: 406
Registrato: Nov 2008
Offline
|
#8
RE: OpenGL è orrido su Windows!
puoi postare il pezzettino di codice che usi per il rendering ?!?
Galli Davide Francesco Maria
No man is an island, Entire of itself.
Each is a piece of the continent, A part of the main.
If a clod be washed away by the sea, Europe is the less.
As well as if a promontory were.
As well as if a manor of thine own Or of thine friend's were.
Each man's death diminishes me, For I am involved in mankind.
Therefore, send not to know For whom the bell tolls,
It tolls for thee.
john donne "for whom the bell tolls"
|
|
| 04-07-2011 20:28 |
|
_tommo_
Mod nerdcore
Messaggi: 5,900
Registrato: Nov 2008
Offline
|
#9
RE: OpenGL è orrido su Windows!
(04-07-2011 20:28)Revan1985 ha scritto: puoi postare il pezzettino di codice che usi per il rendering ?!?
Fosse un pezzettino 
Comunque non credo che abbia a che fare col rendering, infatti su OS X va veloce, e il rendering in sè stando a Very Sleepy prende appena il 4% del tempo di esecuzione.
Altri check che ho fatto includono mettere gli alpha bits a 0, mettere il formato del colore a 32 (questo l'ha un pò velocizzato), mettere la depth a 16 bit, usare PFD_SWAP_EXCHANGE per il buffer swap.
Però va ancora lentissimo, mistero.
Ah, le prestazioni sono precipitate da quando ho messo un quad alpha blended che riempie tutto lo schermo...
E' come se facesse il blending su CPU. Boh.
Tommaso Checchi
< devlog | twitter | Dojo, a C++ game framework >
|
|
| 04-07-2011 20:54 |
|
morgoth90
game over
Messaggi: 1,462
Registrato: Nov 2008
Offline
|
#10
RE: OpenGL è orrido su Windows!
sembra più un bug dei drivers video, provalo su un altro pc windows che sono curioso
Luca Salmin
![[Immagine: premioeasteregg.png]](http://img510.imageshack.us/img510/6268/premioeasteregg.png)
skype: morgoth990 twitter: morgoth990
|
|
| 04-07-2011 21:13 |
|
Eclipse
npc in fps 4 food
Messaggi: 11,275
Registrato: Sep 2004
Offline
|
|
| 04-07-2011 21:19 |
|
_tommo_
Mod nerdcore
Messaggi: 5,900
Registrato: Nov 2008
Offline
|
#12
RE: OpenGL è orrido su Windows!
Mi correggo, il tempo esagerato che si spende sta tutto su Render, piazzando i printf come si deve - per la precisione tra startFrame() e endFrame().
A questo punto è sicuro che c'è qualcosa che va in fallback CPU e che VerySleepy si sbaglia.
Misteri a palate!
Tommaso Checchi
< devlog | twitter | Dojo, a C++ game framework >
|
|
| 04-07-2011 21:41 |
|