It is currently Fri May 24, 2013 10:13 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Problem on Notebook w/ 2 Gfx-Kernels (resolved .. sort of)
PostPosted: Tue Apr 17, 2012 5:32 pm 
Offline
User
User

Joined: Sun Oct 24, 2004 9:25 am
Posts: 61
On an Asus NB with nvidia 540 gtm and the intel gfx kernel of the processor, I can't seem to get simple graphics -such as lines -to show up when the exe PB created is being executed with the "standard gfx processor" set to nvidia, (whereas the same exe executes as expected when the standard is set to "integrated graphics".)

In the nvidia case, the screen simply goes black, and it comes back to normal view when the program finishes.
The graphics to be displayed is just a grid of lines.

Environment:
w7 x64 home premium, current patch set
nvidia 296.10
intel hd3000 8.15.10.2656
pb 4.60-32
pb 4.60-64

Non-PB exes do behave as expected (i.e. graphics are shown either way, and usually with a performance boost when nvidia is the choice)

Am I the only one with this problem, or can anyone confirm this behaviour ?

_________________
Is this an artifact or should it be disposed of ?


Last edited by Captn. Jinguji on Mon Apr 30, 2012 7:33 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Problem on Notebook w/ 2 Gfx-Kernels
PostPosted: Wed Apr 18, 2012 8:46 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Feb 16, 2009 10:42 am
Posts: 531
Location: sweden
I have a quiet similar laptop, so if you attach some code I can try it.


Top
 Profile  
 
 Post subject: Re: Problem on Notebook w/ 2 Gfx-Kernels
PostPosted: Wed Apr 18, 2012 8:46 pm 
Offline
User
User

Joined: Sun Oct 24, 2004 9:25 am
Posts: 61
Thanks, Jesper.
Here's one example, derived from one of PB's sample codes
(since I mislaid the original code which was even simpler).

Code:
;
; ------------------------------------------------------------
;
;   PureBasic - 2D Drawing example file
;
;    (c) 2005 - Fantaisie Software
;
; ------------------------------------------------------------
;
; fix for fullscreen multi monitor bug in PB DirectX9
;
; Fullscreen problem with dualscreen monitor:
; http://www.purebasic.fr/english/viewtopic.php?f=4&t=41281
;
CallFunction(OpenLibrary(#PB_Any,"dwmapi.dll"),"DwmEnableComposition",0)


InitSprite()
OpenScreen(1920,1080,32,"HHH")
If StartDrawing(ScreenOutput())
  Circle(100,100,50,RGB(0,0,255))  ; a nice blue circle...
 
  Box(150,20,20,20, RGB(0,255,0))  ; and a green box
 
  FrontColor(RGB(255,0,0)) ; Finally, red lines..
  For k=0 To 20
    LineXY(10,10+k*8,200, 0)
  Next
 
  DrawingMode(#PB_2DDrawing_Transparent)
  BackColor(RGB(0,155,155)) ; Change the text back and front colour
  FrontColor(RGB(255,255,255))
  DrawText(10,50,"Hello, this is a test")
 
  StopDrawing()
  FlipBuffers()
EndIf

; Create a gadget to display our nice image

; ImageGadget(0, 0, 0, 0, 0, ImageID(0))

;
; This is the 'event loop'. All the user actions are processed here.
; It's very easy to understand: when an action occurs, the EventID
; isn't 0 and we just have to see what have happened...
;

Delay(1000)


End   ; All the opened windows are closed automatically by PureBasic

_________________
Is this an artifact or should it be disposed of ?


Top
 Profile  
 
 Post subject: Re: Problem on Notebook w/ 2 Gfx-Kernels
PostPosted: Mon Apr 30, 2012 4:27 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Feb 16, 2009 10:42 am
Posts: 531
Location: sweden
Sorry this took so long.
I have tried it with auto-select, and also tried it with only integrated and also tried it with the real thing... and I cant reproduce your problem.


Top
 Profile  
 
 Post subject: Re: Problem on Notebook w/ 2 Gfx-Kernels
PostPosted: Mon Apr 30, 2012 7:31 pm 
Offline
User
User

Joined: Sun Oct 24, 2004 9:25 am
Posts: 61
jesperbrannmark wrote:
Sorry this took so long.
I have tried it with auto-select, and also tried it with only integrated and also tried it with the real thing... and I cant reproduce your problem.


Thanks, Jasper. I was busy myself, re-installing from scratch, but with win7pro instead of win7 home premium, since I had noticed that
w7 home premium wouldn't handle more than 16 GB of RAM; maybe, "excess" RAM was even responsible for that unexpected behaviour
(I kept the PB installation, since it lives on another drive, so, it seems like it wasn't the PB intallation's fault at all).
Now, all seems to be fine.
Thanks for trying, anyways.
Hope I'll be able to return the favour sometime.

_________________
Is this an artifact or should it be disposed of ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye