Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Growlith1223

Members
  • Posts

    2042
  • Joined

  • Last visited

Posts posted by Growlith1223

  1. If you're not going over the max value of a contructor then there's no reason to use the larger constructor, giving way too much space for a number that you planned to never go higher to begin with is just plain lazy and dumb, as i said before, you want to use higher numbers, then use a Single then and be happy with the worst of both worlds!
  2. You will gain success if you apply effort correctly
    You will gain experience if you apply effort incorrectly
    You will gain nothing if you apply no effort
    the last applies to you
  3. ok redoing my tests for this type of stuff, An integer is handled within a 2.3ms timespan for a 1 To 32k for loop. a Long is handled within a 1.8 For loop, HOWEVER, i have noticed that there was a small jump in memory consumption with a Long than what it would be with an Integer, being as a Long is 4 bytes memory and an Integer is 2 bytes of memory.
  4. @'Joyce':

    > Boost? I'm not sure I understand how constantly having your data converted between a Long and Integer will be faster than just flatout using the format it'll convert to anyway.

    I wasn't talking about converting back and forth i was talking about switching to Integers where needed since i highly doubt anyone ever is going to go past or even needs to go past 32k, just seems a bit unreasonable there(except for maybe experience)
  5. @'Joyce':

    > I wonder about that, generally I would say pick what seems the most appropriate.. In this case an Integer, but VB6 Integers are rather strange.

    It's a small speed boost to choose an integer over a long but it adds up, trust me and with vb6 you need all the speed you can get >_>
  6. @'Madses':

    > @'BeNjO':
    >
    > > I randomly chose to watch boku no pico last night before bed, It seems it was a wrong choice, teen lads that look and sound like women with male bits getting put into places they shouldn't be. Shame they blurred it though xD.
    >
    > Lmao!
    > I kinda was wondering what it was last night, now I know XD

    It's the best anime ever man! hands down the best anime in the world, no, the universe!
  7. @'Joyce':

    > As far as I am aware the runtime will convert any integers to longs in VB6(Internally, mind you.. You won't be able to use the full address space reserved for a Long yourself), which would make using an integer pointless as you'll just make it a tiny fraction slower with more limitations.

    Might as well just throw a value of 1 onto a Long, im sure it'll convert!

    EDIT:
    Correction, judging from what you just said, might as well just throw no limitation and use a Single, im sure that'll be exceptionally fast
  8. @'Suky':

    > When I asked the question is because I read.
    >
    > I spoke with Sky and he did not answer me, apparently he ignored me. How do you expect me to talk to someone who ignores me? That was two days ago. But, thanks Sky… thanks ;)

    The wonders of being busy
  9. @'xelander':

    > You don't need to bump your post after mere 3 hours, or at all, also you already had a thread with the same problem.
    >
    > To answer your question, make sure to install the runtime files, and make sure you install them as administrator.

    it's better to not help the troll, he's been insulting everyone who has tried to help him
  10. @'Miharukun':

    > @'Growlith1223':
    >
    > > An integer's max is 32767(at least in vb6 it is, in .net it's the same size as a Long but a Long is larger in .net if i remember correctly) so yes, it can reach it, you shouldn't be using a variable bigger than what you absolutely need, it's waste of memory and a waste of speed
    >
    > Ahh that's what i needed :D thank you so much bro!
    >
    > so, i just go find byte and change it to Integer right?

    Just go into modTypes, look around for PlayerRec, look for Stats(1 To Stats.StatCount - 1) As Byte. change that to an Integer, ofc you will have to change a lot of the subs that interact with those stats(change them i mean) and change their constructors(the word after As) to Integer
  11. An integer's max is 32767(at least in vb6 it is, in .net it's the same size as a Long but a Long is larger in .net if i remember correctly) so yes, it can reach it, you shouldn't be using a variable bigger than what you absolutely need, it's waste of memory and a waste of speed
  12. as i read this entire thread im seeing the use of a Long in a situation where it will most likely never reach that high, it would be better to use an Integer, while it's not much there is a tiny bit of a faster read/write on Integers than what it would be on a Long
  13. You can fix this by learning how the code works :D
    We're not here to hold your hand through the process of you making your game, you want to make, you have to fix it, we give you hints towards fixing it, you choose to be lazy and want the answer right away, which is why i won't help you
×
×
  • Create New...