flat assembler
Message board for the users of flat assembler.

Index > Windows > What's wrong or Intel vs nVidia.

Author
Thread Post new topic Reply to topic
Zetus



Joined: 03 Jun 2004
Posts: 37
Zetus
It's need to out large RGB picture to OpenGl window.

I do it with simple:
glDrawPixels,[SizeX],[SizeY],GL_RGB,GL_UNSIGNED_BYTE,[VPicture]

All nVidia cards (GeForce, old TNT,etc..) shows good fast result, but INTEL or some ATI cards (include top) shows up to 10(!) times more to draw such picture...

What's wrong?

My init of OGL:

invoke GetDC,[hwnd]
mov [hdc],eax
mov edi,pfd
mov ecx,sizeof.PIXELFORMATDESCRIPTOR shr 2
xor eax,eax
rep stosd
mov [pfd.nSize],sizeof.PIXELFORMATDESCRIPTOR
mov [pfd.nVersion],1
mov [pfd.dwFlags],PFD_SUPPORT_OPENGL+PFD_DRAW_TO_WINDOW+PFD_DOUBLEBUFFER
mov [pfd.dwLayerMask],PFD_MAIN_PLANE
mov [pfd.iPixelType],PFD_TYPE_RGBA
mov [pfd.cColorBits],32
mov [pfd.cDepthBits],0
mov [pfd.cAccumBits],0
mov [pfd.cStencilBits],0
invoke ChoosePixelFormat,[hdc],pfd
invoke SetPixelFormat,[hdc],eax,pfd
invoke wglCreateContext,[hdc]
mov [hrc],eax
invoke wglMakeCurrent,[hdc],[hrc]
Post 09 Oct 2006, 05:36
View user's profile Send private message ICQ Number Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
I don't know the specific problem here, but a few hints - not all from my knowledge (some from articles I've read):
1) The Intel video hardware is not capable of meeting very high standards - that is what you need an external card for. Intel has made many efforts to support all the newest technologies like SM3.0 etc. so it doesn't suck completely, but there is a limit of how much you can stuff on this rather small chip with passive cooling.
2) There have been many tries from ATI to make its technologies, but (this is only MY opinion - not to be quoted!) it seems that they have failed because the mainstream has been moving in other directions. For ATI I would say that they have had the best quality to speed ratio, but in most tests they only test speed - that is why nVidia came on top.
3) Of course there's an issue of angry Linux people because ATI worked worse with drivers than nVidia WITHOUT! Furthermore ATI's drivers gave a 2x boost while nVidia's ones more like a 1000x boost in performance. However, there was an article not long ago that said ATI to release better drivers.

Like I said - I don't know the specific cause, but one or more of these points might bring more light.
Post 09 Oct 2006, 07:30
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Zetus



Joined: 03 Jun 2004
Posts: 37
Zetus
COLORINDEX mode resolves problem Smile
but where now my 32bit picture... Sad

something wrong with intel, realy...
Post 09 Oct 2006, 10:03
View user's profile Send private message ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.