| View previous topic :: View next topic |
| Author |
Message |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Jul 14, 2007 7:22 pm Post subject: |
|
|
Well, for a webbrowser, sure it would work...
But where the practice in that? The control does all the work for you.
|
|
| Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Sat Jul 14, 2007 7:32 pm Post subject: |
|
|
Sure, dragging in a timer that constantly uses CPU power to call on windows APIs is more practicing than to use an event driven system which is much easier and more efficient.
That's like saying you would rather climb up an 80 story building to get to a crucial meeting rather than taking the elevator.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Jul 14, 2007 7:51 pm Post subject: |
|
|
| The cpu power a timer uses is beyond minuscule, I'm saying you can only use that method in such cases as a "web browser". What are you going to do when you require action without having your program in focus?
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Jul 14, 2007 8:42 pm Post subject: |
|
|
| slovach wrote: | | The cpu power a timer uses is beyond minuscule, I'm saying you can only use that method in such cases as a "web browser". What are you going to do when you require action without having your program in focus? |
It would be rare that an web browser would need to do such a thing, but in the case you need it too you would use the other method. Always use the most efficient method possible, memory is not unlimited. Alot of people seem to think there is this black limitless void where you can store all of your data, there isn't.
|
|
| Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Sat Jul 14, 2007 9:22 pm Post subject: |
|
|
| slovach wrote: | | What are you going to do when you require action without having your program in focus? |
http://msdn2.microsoft.com/en-us/library/ms646309.aspx
| slovach wrote: | | The cpu power a timer uses is beyond minuscule, I'm saying you can only use that method in such cases as a "web browser". |
Intel would be really happy if all of the programmers thought like you, for people will need the latest multi-core processors to just be able to run a webbrowser that will be refreshing on every hit of the return button.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Jul 14, 2007 9:52 pm Post subject: |
|
|
Ah I didn't even know such an API existed, definitely good to know, I'm all for learning new things.
But aren't you over-reacting a bit about the whole timer shit?
|
|
| Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Sun Jul 15, 2007 2:56 pm Post subject: |
|
|
Nope, not overreacting. What that code does is abuse multi-threading. Just imagine if all programs are coded in such a way, instead of waiting for a message, the program would check at certain intervals if something has happened. This would not only decrease performance, but also decrease the responsiveness of programs.
Another analogy:
Doing what that code does is like waiting for a mail to arrive by running down the stairs to check every 1 minute rather than waiting for the door bell.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Sun Jul 15, 2007 3:01 pm Post subject: |
|
|
| BRONiUS wrote: | | Hello World v2. |
Wtf is Hello World V2 ?
What else can be approved in Hello World ?
Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.
Or, make a game like Need For Speed Carbon,make a program like Google Earth...
|
|
| Back to top |
|
 |
Xanatos I post too much
Reputation: 18
Joined: 06 May 2007 Posts: 2559 Location: US
|
Posted: Sun Jul 15, 2007 3:26 pm Post subject: |
|
|
| BRONiUS wrote: | | Hello World v2. |
A definate must.
_________________
|
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Sun Jul 15, 2007 3:55 pm Post subject: |
|
|
| DeltaFlyer wrote: | That wastes CPU power.
Just add something like this to the event handler that does the handling for key down:
| Code: |
if Key = Chr(13) then
{do whatever}
|
|
Or
| Code: |
if Key = #13 then
{do whatever}
|
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sun Jul 15, 2007 4:28 pm Post subject: |
|
|
| Kaspersky wrote: | | BRONiUS wrote: | | Hello World v2. |
Wtf is Hello World V2 ?
What else can be approved in Hello World ?
Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.
Or, make a game like Need For Speed Carbon,make a program like Google Earth... |
My question to you is: Have you done any of the stuff you listed there?
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Sun Jul 15, 2007 4:46 pm Post subject: |
|
|
| Flyte wrote: | | Kaspersky wrote: | | BRONiUS wrote: | | Hello World v2. |
Wtf is Hello World V2 ?
What else can be approved in Hello World ?
Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.
Or, make a game like Need For Speed Carbon,make a program like Google Earth... |
My question to you is: Have you done any of the stuff you listed there? |
No.
|
|
| Back to top |
|
 |
gamesguru Grandmaster Cheater
Reputation: 0
Joined: 22 Mar 2006 Posts: 926 Location: detroit
|
Posted: Sun Jul 15, 2007 7:55 pm Post subject: |
|
|
| Kaspersky wrote: | | BRONiUS wrote: | | Hello World v2. |
Wtf is Hello World V2 ?
What else can be approved in Hello World ?
Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.
Or, make a game like Need For Speed Carbon,make a program like Google Earth... | yet again, kaspersky displaying his grammar skills...
_________________
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Mon Jul 16, 2007 1:45 am Post subject: |
|
|
| gamesguru wrote: | | Kaspersky wrote: | | BRONiUS wrote: | | Hello World v2. |
Wtf is Hello World V2 ?
What else can be approved in Hello World ?
Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.
Or, make a game like Need For Speed Carbon,make a program like Google Earth... | yet again, kaspersky displaying his grammar skills... |
Dude getfo'ta here....dont mind anyone grammar on the net ok ? especially here...
who gives a shit about peoples grammar ?
|
|
| Back to top |
|
 |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Mon Jul 16, 2007 5:50 am Post subject: |
|
|
| Kaspersky wrote: | | gamesguru wrote: | | Kaspersky wrote: | | BRONiUS wrote: | | Hello World v2. |
Wtf is Hello World V2 ?
What else can be approved in Hello World ?
Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.
Or, make a game like Need For Speed Carbon,make a program like Google Earth... | yet again, kaspersky displaying his grammar skills... |
Dude getfo'ta here....dont mind anyone grammar on the net ok ? especially here...
who gives a shit about peoples grammar ? |
good grammar is good for the community
same as healthy candy = doesnt exist
get what i mean?
_________________
|
|
| Back to top |
|
 |
|