Point() function is too slow!? or what?

Everything else that doesn't fall into one of the other PB categories.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Point() function is too slow!? or what?

Post by Psychophanta »

Code: Select all

SCREENWIDTH.l=GetSystemMetrics_(#SM_CXSCREEN):SCREENHEIGHT.l=GetSystemMetrics_(#SM_CYSCREEN)
InitSprite():InitKeyboard():OpenScreen(SCREENWIDTH,SCREENHEIGHT,32,""):ClearScreen(0)
StartDrawing(ScreenOutput())
LineXY(10,10,14,14,$eeeeee)
; Delay(10); <- uncomment this line and Point() in next line will catch the correct color
color.l=Point(14,14)
StopDrawing()
Delay(100)
CloseScreen()
Debug Hex(color)
See code and comments :roll:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

Whats supposed to be different? I get "EEEEEE" no matter what
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Post by Baldrick »

same as pdwyer, all seems good to me
tried changing Linexy() to

Code: Select all

LineXY(10,10,14,14,15658734) 
Gets the same result
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

:shock:
Without the Delay() I get 0 (black) :o

PB4.30b4 ATI 9600
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Post by Baldrick »

I tried with both PB4.2 & 4.3B4, both work no problem here
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

what os? Perhaps it's a vista bug :P
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Works fine here on Vista 32 with or without the delay.
I may look like a mule, but I'm not a complete ass.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Grrr. Incredible :o
I use XP pro SP3
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Post by Guimauve »

Psychophanta wrote:Grrr. Incredible :o
I use XP pro SP3
I use XP Pro SP3 and everything work fine.

Regards
Guimauve
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Here you can see directly.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Post by Baldrick »

Just gave it a quick run for you on 3 different machines all using PB4.3b4.
My desktop, an old IBM Thinkpad both on XpSp3 & my old Toshiba Notebook with W98SE, all ran no problems, excepting I had to drop the W98 back to a 24 bit screen to make it run.

Edit: Don't have Vista to check for you.... :lol:
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

Result EEEEEE, without delay.
XP Pro SP 3 - DirectX 9.0c
DualCore Intel Pentium D 820, 2800 MHz
Gigabyte GA-965P-S3
Intel Broadwater P965
NVIDIA GeForce 7600 GT
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Post by djes »

Love your blitz-like colours! :P
Seems this bug is platform/drivers dependant. You found the fix by yourself, could be useful sometimes.

I don't know how we can still code on Windows OS :( Maybe sometimes someone will do a paper demonstrating that none of Windows games timing is accurate. Imagine that in real life, playing basketball sometimes with a square ball or +/- 5 mns. :roll:
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

djes wrote:Love your blitz-like colours! :P
Seems this bug is platform/drivers dependant. You found the fix by yourself, could be useful sometimes.

I don't know how we can still code on Windows OS :( Maybe sometimes someone will do a paper demonstrating that none of Windows games timing is accurate. Imagine that in real life, playing basketball sometimes with a square ball or +/- 5 mns. :roll:
Hehe, yes, i can not live without those blitz-like colours scheme. :wink:
So, looks like it is a ATI driver issue! ... again i must change it ... aaagh!
And yes, you are right about the internal inaccuracy of windows timing in graphics matter. But i think it is not a windows matter but an IBM-PC architecture one. :roll:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

what did you use for the screen capture avi?
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Post Reply