
| · Forums and IRC Rules · Portal |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
| Today's Top 10 Posters · My Last 10 Posts | Board and IRC Rules · Help · Members · Calendar |
| Forum | Topics | Replies | Last Post Info | |
|---|---|---|---|---|
![]() |
Older topics Here you can access all topics posted from May 12th 2005 to Apr 9th 2006 (In read only mode). |
1126 | 15694 | 9 Apr, 2006, 11:06 In: [GAME]Learn how to count to...By: DJ Omnimaga |
| Pages: (2) [1] 2 ( Go to first unread post ) | ![]() ![]() ![]() |
| xlibman |
Posted: 7 Jul, 2006, 19:28
|
||
![]() Ragol666 Group: Founder Posts: 11283 Member No.: 1 Joined: 9 Apr, 2006 |
hmm okay dysfunction was always wondering why map loading took so long in Diortem and Metroid II (between 1 and 4 seconds), well before you continue reading, I must warn you: the code below may be offensive to BASIC programmers, because there is so many things that are done at map loading that after a while the code went so messy that it now reminds me my old days of Illusiat (without the Lbl/gotos) and I got headache reading it. Btw this is one of the reason why Diortem died the first time, I gave up on this code. Now i rewriten most of it before finishing metriod but still... I was wondering if there would be some stuff that could be made more optimized in this mess >.<?
Yes I have been coding calcs for 5 years since july 4th I know I should do better >.< ... might be cuz of my long 8 months break as well, I dunno ._. -------------------- |
||
| kalan_vod |
Posted: 8 Jul, 2006, 0:40
|
|
Super mega post whore of the doom Group: Members Posts: 2365 Member No.: 43 Joined: 19 Apr, 2006 |
Yeah I see a few things to work on, it will improve speed and size some what. I assume the â is theta? Btw, if vars are in use (I think your using PV b/c the other vars are in use), I would use a temp var that was being used. Ie. If T was being used in game, store it to a list and then use T as the temp var. Therefor you could use delvar instead of going 0->PV, which would save 1byte + 1byte using A instead of PV. I will give it a work over later on Sat or Sun, but I am tired and going to work early and all day on Sat. Hope I helped |
| Spellshaper |
Posted: 8 Jul, 2006, 5:34
|
||||||
![]() rectangular puddle Group: Coders Of Tomorrow Posts: 1996 Member No.: 5 Joined: 10 Apr, 2006 |
That can be reduced to
err... at least I think so ^^ Somebody correct me if I'm wrong /edit: I shifted the list one line down cause dunno why it started messing up when I tried to do that long If-statement in one line This post has been edited by Spellshaper on 8 Jul, 2006, 5:38 -------------------- The tooth fairy teaches children that they can sell body parts for money.
All power corrupts, but I need the electricity! I gave sanity a shot... not my fault it failed >_<! |
||||||
| xlibman |
Posted: 8 Jul, 2006, 12:34
|
![]() Ragol666 Group: Founder Posts: 11283 Member No.: 1 Joined: 9 Apr, 2006 |
hmm interesting, I should try this to see if it works, lot smaller
-------------------- |
| kalan_vod |
Posted: 8 Jul, 2006, 12:38
|
|
Super mega post whore of the doom Group: Members Posts: 2365 Member No.: 43 Joined: 19 Apr, 2006 |
What exactly can â be?
|
| xlibman |
Posted: 8 Jul, 2006, 12:49
|
![]() Ragol666 Group: Founder Posts: 11283 Member No.: 1 Joined: 9 Apr, 2006 |
the big N in the finance app, its the map ID
-------------------- |
| kalan_vod |
Posted: 8 Jul, 2006, 13:15
|
|
Super mega post whore of the doom Group: Members Posts: 2365 Member No.: 43 Joined: 19 Apr, 2006 |
I figured that, as graphlink changed it to it
|
| Demon |
Posted: 8 Jul, 2006, 14:46
|
||||
![]() Post whore Group: Members Posts: 531 Member No.: 102 Joined: 3 Jul, 2006 |
It's not offensive but it confused the heck out of me - I just looked at the first few lines and my brain went:
But I never knew you could use those FINANCE vars as... er, well, vars... ![]() *pyro_xp2k still has a long way to go... -------------------- *Click!* *Gasp!* OMG!! WTF?! LOL, M8.
Timendus of MaxCoderz: "I guess people are just so used to yelling on about their problems instead of contacting the people who could fix it because they've been taught by Microsoft and some others that problems are always there to stay, and complaining about in the proper place them will not make any difference whatsoever." |
||||
| Super Speler |
Posted: 8 Jul, 2006, 15:07
|
||
![]() Post whore Group: Coders Of Tomorrow Posts: 779 Member No.: 95 Joined: 18 Jun, 2006 |
Well, you can and not only that but Finance Vars are not only faster then normal Vars but faster then Ans as well, which is the reason I use them in anything that needs to have an ubsurly high screen refresh rate. -------------------- [color=red]Currently conquering the world. In Phase 1.
List of members of private army:[/color] SilverCalcKnight, TD-Linux, Kuro, Cure, Weregoose, Lolbbq, elfprince13, leofox, Brazucs, +ZERO+, Radical Pi, shadow, bananaman, trigkid213, netham45, Full-Metal-Randomist, myfavcolorchanges, Fallen Ghost, trevmeister66, lolje, Harrierfalcon, clementop, blm22, Mexi1010, baorder54, Bking0, frenchcalc1, TheStorm, jimbauwens, Sting::Ray, IAmACalculator, MechaTech84, Groene07, Angel14995, Xphoenix, lordofthegeeks, tama and... (\__/) (='.'=) (")_(") [color=red]If you wish to join PM me.[/color] [QUOTE=Ad on omnimaga]Ti 83 Game Programming: Move your career forward with an accredited online degree![/QUOTE] [QUOTE=Netham45]It isn't really a problem, but it kind of scares me when people randomly quote me, like they are stalking me.[/QUOTE] |
||
| xlibman |
Posted: 8 Jul, 2006, 15:31
|
![]() Ragol666 Group: Founder Posts: 11283 Member No.: 1 Joined: 9 Apr, 2006 |
![]() ok I guess I'll try to use those instead of A and B for character moving then if i make a new game -------------------- |
| kalan_vod |
Posted: 9 Jul, 2006, 3:33
|
|
Super mega post whore of the doom Group: Members Posts: 2365 Member No.: 43 Joined: 19 Apr, 2006 |
Well they can't be deleted like with A-theta and they take up one extra byte I believe.
|
| xlibman |
Posted: 9 Jul, 2006, 7:26
|
![]() Ragol666 Group: Founder Posts: 11283 Member No.: 1 Joined: 9 Apr, 2006 |
you mean, token wise? (as some tokens takes 2 bytes instead of 1)
-------------------- |
| kalan_vod |
Posted: 9 Jul, 2006, 13:57
|
||
|
Super mega post whore of the doom Group: Members Posts: 2365 Member No.: 43 Joined: 19 Apr, 2006 |
Finance vars. |
||
| xlibman |
Posted: 9 Jul, 2006, 16:09
|
![]() Ragol666 Group: Founder Posts: 11283 Member No.: 1 Joined: 9 Apr, 2006 |
yeah I know you are talking about those, but when pasting for example "PMT" in a program does it takes 2 bytes instead of 1? Like lowercase letters? Also technically we cant even delete a finance var, as it will be set back to 0 so it will always take space
-------------------- |
| Super Speler |
Posted: 9 Jul, 2006, 16:41
|
||
![]() Post whore Group: Coders Of Tomorrow Posts: 779 Member No.: 95 Joined: 18 Jun, 2006 |
Lets go over the advantages and disadvantages. Advantages: -Fastest Disadvantages: -Can't use with DeleteVar or for( -2 bytes rather then one. So I will say this: it is not always the best choice of variable, but is a nice thing to know that it can be used if needed. -------------------- [color=red]Currently conquering the world. In Phase 1.
List of members of private army:[/color] SilverCalcKnight, TD-Linux, Kuro, Cure, Weregoose, Lolbbq, elfprince13, leofox, Brazucs, +ZERO+, Radical Pi, shadow, bananaman, trigkid213, netham45, Full-Metal-Randomist, myfavcolorchanges, Fallen Ghost, trevmeister66, lolje, Harrierfalcon, clementop, blm22, Mexi1010, baorder54, Bking0, frenchcalc1, TheStorm, jimbauwens, Sting::Ray, IAmACalculator, MechaTech84, Groene07, Angel14995, Xphoenix, lordofthegeeks, tama and... (\__/) (='.'=) (")_(") [color=red]If you wish to join PM me.[/color] [QUOTE=Ad on omnimaga]Ti 83 Game Programming: Move your career forward with an accredited online degree![/QUOTE] [QUOTE=Netham45]It isn't really a problem, but it kind of scares me when people randomly quote me, like they are stalking me.[/QUOTE] |
||
Pages: (2) [1] 2 |
![]() ![]() ![]() |