Doors CS [Cur: 5.8 Beta]

A forum where you can announce your awesome project(s).

Moderator: MaxCoderz Staff

User avatar
DJ_O
Calc King
Posts: 2324
Joined: Mon 20 Dec, 2004 6:47 pm
Location: Quebec (Canada)
Contact:

Post by DJ_O »

same here :(

when does your hsoting plan expires?
Image Image Image Now active at https://discord.gg/cuZcfcF (CodeWalrus server)
necro
Calc King
Posts: 1619
Joined: Sat 26 Mar, 2005 2:45 am
Location: your shadow

Post by necro »

just registered...asked if the gui had options to run off an interupt so you can check for input and then run code "while" the mouse is used. Useful for RTS and shooting games (like duck hunt or house of the dead)
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

They've been going slightly faster lately for me, dunno why.
Necro @ Cemetech wrote:while it is checking for input with the mouse, can other things run "in the background"? Or in other words, will it support a interupt based mouse execution so that things like RTS which would need to run troop AI while the user inputs and when he doesnt also?
Kerm Martian @ Cemetech wrote:I hadn't considered that yet, but it could certainly be done. I can just make another GUI Stack entry type that is a pointer to a piece of code, hopefully not to big so it wouldn't bog the mouse down, to do anything that needed doing while the GUI was working.
@Kevin: October. When it does, I'm going to switch to 818hosting.com - unlimited storage & bandwidth all for $6.95 per month. I've gone to some sites hosted on it and they seem quite fast.
Image Image Image
User avatar
DJ_O
Calc King
Posts: 2324
Joined: Mon 20 Dec, 2004 6:47 pm
Location: Quebec (Canada)
Contact:

Post by DJ_O »

aww I though it was something like march ,, oh well :cry:

still cool tho
Image Image Image Now active at https://discord.gg/cuZcfcF (CodeWalrus server)
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Kerm Martian @ Cemetech wrote:I hadn't considered that yet, but it could certainly be done. I can just make another GUI Stack entry type that is a pointer to a piece of code, hopefully not to big so it wouldn't bog the mouse down, to do anything that needed doing while the GUI was working.
Ehm.. shouldn't that be the other way around? :?
You should call an interrupt that handles the mouse, main execution should stay with the program. This because main execution = 95% of CPU time, interrupt = 5%. You're not going to tell me that you need 95% of CPU time just to draw a mouse cursor (and are still afraid it gets bogged down), are you..?
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

I was proposing having it not be an interrupt. And yes, of course the mouse uses much much less time. It simply checks direct input for any keys, and returns to the repetitive routine again. But it won't be an interrupt probably; a combo CALCnet2 (if it happens) and interrupt tasker if I make one will be using the interrupts.
Image Image Image
necro
Calc King
Posts: 1619
Joined: Sat 26 Mar, 2005 2:45 am
Location: your shadow

Post by necro »

what does that mean exactly?
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

It means that he's planning to use the interrupts to check for a data transfer from the "network", and he wants to attempt to write some form of task scedular.

I don't see it happening, as usual, but I'm curious to see how far he'll get untill he realises that neither are neccessary, and puts the mouse thingy in an interrupt :P
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

lol...you just can't wait for me to screw up, can you? :lol:
Image Image Image
necro
Calc King
Posts: 1619
Joined: Sat 26 Mar, 2005 2:45 am
Location: your shadow

Post by necro »

I think I agree with timendus on this...interupts>something probably slower and more confusing
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

But it's not gonna be slower, in fact, and it's going to be easier for everyone to code because you won't have to worry about interfacing with an interrupt at all for normal use. For networking, I'm going to make the interrupt reading from and write to buffers.
Image Image Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Where are you going to put all that? You have built in routines, that need space + a pointer table, you want an interrupt + it's required jump table, you want data buffers for networking... Is there any saferam left for developers..?
KermMartian wrote:lol...you just can't wait for me to screw up, can you? :lol:
Well, I've been waiting for five years :mrgreen:
Nah, just kidding. I just think that you're almost always planning things beyond what's realisticly possible, what's useful, and what you are capable of coding.
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
Andy_J
Calc Master
Posts: 1110
Joined: Mon 20 Dec, 2004 10:01 pm
Location: In the state of Roo Fearing
Contact:

Post by Andy_J »

Timendus wrote:you want an interrupt + it's required jump table,
Wasn't it figured out that you really only need a handful of bytes for the jump table for an interrupt? I cannot seem to find any verifcation on the Detached Solutions forum at the moment, though...
ImageImage
Image
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

No. Experiments have showed that any of the 256 values can appear in the lower byte, so you do need to use up 257 bytes.
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

I do remember there being some excitment because someone thought that the lower byte wasnt as random. But further testing proved that no to be the case. I think Sigma was doing some tests and it sparked a big discussion on the old boards.

You could use an interrupt to run your mouse and perhaps some other small stuff (timers, battery checks every now and then etc) ... but i dont know if it is absolutely necessary.

Either way plans are only plans, im sure lots of things will change as they tend to do once you begin the actually implementation.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
Post Reply