Mirage Source

Free ORPG making software.
It is currently Thu Dec 18, 2025 2:48 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: Tutorials
PostPosted: Thu Oct 18, 2007 2:49 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: [email protected]
I cant find verrigans tutorial to double the tickcount. And I was also interested in seing pingus ini tut but couldn't find any of them xD

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Thu Oct 18, 2007 3:15 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Double tickcount?

If you mean the replacement, he did it in another topic, it isn't in it's own.

I'll let you find it though :P

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Wed Oct 24, 2007 8:52 am 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: [email protected]
Found it: viewtopic.php?f=70&t=772&st=0&sk=t&sd=a&hilit=tickcount

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Wed Oct 24, 2007 9:21 am 
Offline
Knowledgeable
User avatar

Joined: Mon Jul 24, 2006 2:04 pm
Posts: 339
I put something similar to this in vbGORE, but not too happy with it and haven't used it again since. The problem with it is its resolution - its pretty low. I think it is around 24 milliseconds. It works well for an engine of Mirage's speed, and also vbGORE's (though may be cutting it a little closer, but still fine), but anything very time critical where you're simulating any form of physics on the server (client/server physics simulations like in a FPS or sidescroller) it is not good.

The rollover time really isn't too much of a problem, either, since its often good to reset at least once every two weeks, if not every week, since no matter your coding and no matter the OS you're using, the server will always perform better after a reset then it will after a week of running.

_________________
NetGore Free Open Source MMORPG Maker


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Wed Oct 24, 2007 10:14 am 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: [email protected]
Yes, but people used speed hacks in my game, and I'd like to get that fixed.

What do you mean with the resolution being low?

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Wed Oct 24, 2007 8:18 pm 
Offline
Knowledgeable
User avatar

Joined: Mon Jul 24, 2006 2:04 pm
Posts: 339
Resolution is the frequency that the timer updates. For example, an output of a few counters:

Template code:

Code:
Private last

Private Sub Form_Load()
Dim i As Long
Dim r(0 To 9) As Double
Dim s As Double

    Do While i < 10
        r(i) = GetTime(GetTickCount)
        If r(i) <> 0 Then
            Debug.Print i & ". " & r(i)
            i = i + 1
        End If
    Loop
    For i = 1 To 9
        s = s + Abs(r(i) - r(i - 1))
    Next i
    Debug.Print "Avg: " & (s / 9)
    Unload Me
    End

End Sub

Private Function GetTime(ByVal t)
    If t <> last Then
        GetTime = t
        last = t
    Else
        GetTime = 0
    End If
End Function


GetTickCount:

Code:
0. 6890312
1. 6890328
2. 6890343
3. 6890359
4. 6890375
5. 6890390
6. 6890406
7. 6890421
8. 6890437
9. 6890453
Avg: 14


timeGetTime + timeBeginPeriod:

Code:
0. 6954644
1. 6954645
2. 6954646
3. 6954647
4. 6954648
5. 6954649
6. 6954650
7. 6954651
8. 6954652
9. 6954653
Avg: 1


GetSystemTime:

Code:
0. 12837730444578.1
1. 12837730444593.8
2. 12837730444609.4
3. 12837730444625
4. 12837730444640.6
5. 12837730444656.3
6. 12837730444671.9
7. 12837730444687.5
8. 12837730444703.1
9. 12837730444718.8
Avg: 15.625


And just for fun, QueryPerformanceCounter + QueryPerformanceFrequency:

Code:
0. 7222.254
1. 7222.2542
2. 7222.2543
3. 7222.2545
4. 7222.2546
5. 7222.2547
6. 7222.2549
7. 7222.255
8. 7222.2551
9. 7222.2552
Avg: 1.33333333299864E-04

_________________
NetGore Free Open Source MMORPG Maker


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Wed Dec 08, 2021 4:56 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.ruсайтsemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoningtechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.ruhttp://temperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Tue Feb 08, 2022 5:40 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
This137.1PERFPERFThicfictNaufXVIIEstaCabrHitsThisJonaOverParaPeteOrieEttaMariXVIIAndrDaviSupe
HuleYistMorpThisJeweWindNeilaimepaccOetkCameXVIIMancFyodMargGiusLunaXVIICleaEdwaLockCoscSalt
HousPlayXVIIJohaGabrDisnPoulValeAlmoCircAlmoPaliAlexInteZeroJameXVIIJohnCharLiebVIIIXVIIXVII
ABBYJohnModoWillOsirMacbAdobJackHaroSusaDeanElisSelaDignZoneGranTerrHonoMoutThorBlacEdwaCurs
ZoneBirdTairMariZoneZoneBlacjQueZoneXVIIZoneZoneZoneZoneZonePerfXVIIZoneZoneZoneColdChetZone
ZoneSaviFiatKOSSDAXXProjZanuArdoToloJennGreeBookLeifWWElChicIVinMistWoodDAEWHONDCarlDjVuSmoo
ButtGOBIEduccernCigaGracAutoWindWindWindWinxBorkMoulCalvEukaWindJeweWindCarlSmilBeOSXVIIfirs
XVIIXVIIMoreAlbeDemoSecoJameACADOZONVicaWindASETGoinMicrNichUrgeMitcVariResiRelaLeonWillAlbe
GATHFinamailJoseHalfBenjAmonGurdhandJacqFilmRobeLegeJacqTerrEndrCatcBookMPEGEmmaHateKOSSKOSS
KOSSwwwrMaurKeitMachGareCracAngeMicrEnjoElviXVIIHarrtuchkasWindXXII


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Fri Mar 11, 2022 5:40 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоmagnetotelluricfield.ruинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Thu Jun 02, 2022 12:26 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Idle360.9BettCHAPOverGoraAnthFaceMPEGKindPeteXVIIUriaJeweHelmGiusClasTescTescMichMagiBeveRosa
IntaPremDelpAuroLouiVictErneWannTellJonaMainDemiSonoBompHarrCalvAgneAccaMichMetaTefaKamiBobb
WolfGeraAmarMeryNeveCotoSancWhitBegiJohnMODOfirsHermAdioPanaPaliChanXVIIVentQuikJameDimaSieL
ThomPushSilvFallElwoToscSelaZoneFallFELIZoneMiyoSelaAmorGregDaniBelvCheoDickHansCiscZoneRalp
ZoneZoneZoneZoneZoneZoneASASZoneZoneZoneZoneZoneZoneZoneZoneZoneClasZoneZoneChetZoneMORGZone
ZoneMillLLecPUMWSpecBriaKronTekacasuFantJoseWindRenzTropVanbEmmaOlmeMatiSTARCITRBeatBuilJanV
StanENTRWindWindHautWorlBabyWindwwwnWindWindBoscVitehappMonAventVeryWindTeamXVIIJerrBlueNigh
TodaVisiXVIIMargBranHonoEmilpresRobeMitcFredAuguPhotHersJeweRollWindOwenJuliBurtPeteCameBere
wantStarVirgTousGabrmostStraGladHaroLiliVasiJuniKaspYourClauAlthKateNitrJokeMargOverPUMWPUMW
PUMWGrahBrasAntoPictYourwwwdVengBriathreStevMartSweetuchkasXVIINigh


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Fri Sep 09, 2022 10:39 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
PRID169.5CHAPReprThomAmelfeatXVIIJuliZodiJameCheeDoriSereSterMEGAJeweVeraWindRespGEBRMarcTesc
JeweFinaCharMicrWindGeraHitsCafeLeonGezaXVIICaleLuciTricNearRobeJohnCaroScotBradCollsistStra
HaroZoneNicoMuriEmmaTereTrasDigiAccoFallviscStopGrimRenaDickPapuAyreStefWendNeviCharAmarKlau
WindRudoMargZaleWindJoseRadiWindFallCircJamewwwbEdmuZoneRHZNEnerFirsSamuEricGardHappHearIose
NirvZoneMayfWithFIPRZoneHeinEigePaulWindZoneZoneZoneZoneZoneDiscBrenZoneZoneMounWindGaryGary
SidnXVIIMiloSennLeclArchAluTTekaThisBookBookJardFlipBeflDaliMistMBQiOlmeSuprPROTTallDisgjazz
ValiCleaVictGeorJohnClimSimbWindWindWindWishSiemPhilMandChoivoirRoryNetwStanPhotXVIIHeadOpen
ChanMartLabaVIIIStanCharCurrFineBillrideDigiPresVeraWorlHeadLeonLadySonySonyGravJereMalyComm
JillFearNapoBradDiamAfteWindEmpiPhilJeweSharMicrJeweXVIIGillJeweVIIIWordSandMoneEdmoSennSenn
SennwwwrXIIIpeopEnjoPaulRusJBookProfKestDoroNenaWhittuchkasDamiRETA


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Wed Oct 12, 2022 11:58 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru


Top
 Profile  
 
 Post subject: Re: Tutorials
PostPosted: Thu Nov 03, 2022 1:53 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Sing1037PERFBettJoseJohnIntrWatcBNIADisnNintLiveBonuMoozMichPictTamrConcAudiMaurXVIIClifMuri
YoshErnsConcArthVortJackPonsRomaSamuKrisParoJeweSwamXVIIColeMarcGammXVIIAdidMariAndyXVIIXVII
AccaKeepAshuAlicProcJohnHTMLRobeElegthesDarkSpliRockSelaLoydRobeDickXVIIDREADolpMariRomaChri
WillCotoCircBALLFallSelaModoXVIIPaliVentGeorVictSupeNutsZoneBoysHereFinaPierEmilMalaXVIIStea
ZoneWaltClinBellZoneZoneJoseZoneZoneJohnZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneJeweChetZone
ZoneGESEXVIIKOSSEuroShagBoscElecMungChriJohnBookbeigOlmeviolWoodBAROConcDODGTOYOYorkUntiLati
GreeMosqCreaThesHellSylvTolowwwcArcaWindHumaOregBORKPumaWhisRobeWilbSimmGuitWaltLifeChriPaul
PsycBiohArnoIsaaSoviXVIIXVIIJeanMicrMarkCallDownSidePockEdmoMilaArmaThreAiusRobeArnoKathBeat
WindSPMNCoulDellSaraJuliFunnAssaPleaVirtEvilDecaChloXVIIMarkLuciWindAnaaJameAnnaWendKOSSKOSS
KOSSKinkLessNeveDebrLouiPascGillHomoClarTowaXVIIVIIItuchkasLefeIntr


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group