Mirage Source

Free ORPG making software.
It is currently Sat Dec 20, 2025 3:51 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ] 
Author Message
PostPosted: Fri Nov 24, 2006 2:54 am 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: [email protected]
Hi all! I did a very amazing test with VB and C++, comparing both. I want to change all my code to C++ couse everybody says it is faster, and it is. I developed a DLL with 2 Sum functions, one that uses 2'byval's, 'a' and 'b' variables and the other uses 'byref', 'S' as a structure(type) that has a 'a' and 'b' vars. I did the same functions inside VB, and tested both thru VB, so I just compiled the DLL and used it's functions thru VB. Then I F5 inside VB and realized that C's DLL was much faster, almost 2X faster than VB's. Then I compiled the VB project and executed the exe file. Then I noticed a VERY IMPORTANT THING! VB was faster that time! And almost 2X faster than C's DLL. I tought I did something wrong and noticed that I didn't. It realy was the great VB acting again... When the VB code was 'ran' using F5 it got MUCH MUCH slower than the SAME compiled code! So I'm warning you to don't host your server thru 'ran' VB code for peaple. First compile the code and then execute the exe file. I'll do a few more tests w/ the same functions being used from C++, and not VB, to see if C++ is realy much faster then VB.

It's just a warning becouse I used to do that when the server was bugued, I used to run the server thru VB and then wait until it bugs so I can fix. Don't do that! xD


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 25, 2006 5:44 pm 
Offline
Knowledgeable

Joined: Fri Aug 25, 2006 6:40 pm
Posts: 132
well thats nice to now. note to self do not do that. well you should try converting it to java and see what it does. it would be interesting to now.

_________________
http://spirea.flphost.com come and join today i got flash games lol.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 25, 2006 6:02 pm 
So have you found anything else about this yet or are you still working on it?

Lord, it's know, not now. There is a big difference. Know is like "no". Now, is like.. Well, now. Lol.

Good luck with all of this DM. Hope you come to a conclusion as to which lang is the better.


Top
  
 
 Post subject:
PostPosted: Sat Nov 25, 2006 11:37 pm 
Offline
Knowledgeable
User avatar

Joined: Mon Jul 24, 2006 2:04 pm
Posts: 339
Uncompiled code is always going to be tons slower then compiled.

What compiling options are you using in VB? In C++? You might want to make sure you choose the best speed optimizations for both.

Also, many C++ functions are faster when written correctly because there is less overhead and there is more to it. People seem to leave that out. VB doesn't just make slower code since it hates you, it has slower code since it has error checks and such.

Either way, in a properly coded game, you wont hardly notice the difference since most of your CPU cycles go to outside libraries (sound, music, and most importantly, graphics).

Quote:
It's just a warning becouse I used to do that when the server was bugued, I used to run the server thru VB and then wait until it bugs so I can fix. Don't do that! xD


Yeah many people don't seem to understand that its different or something. Its a REALLY good feature to be able to do that for debugging, but in a public server, a horrible idea. 8)

_________________
NetGore Free Open Source MMORPG Maker


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 26, 2006 12:10 am 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: [email protected]
I did the same test w/ C++, direticly from it, no DLL. It was pretty much faster!
Verrigan told me about VB's compiling stuff and I made it much faster, selecting that options, but it stills slower than C++.
I used a simple sum function, I dont think there is a way to make sum faster. If there is, tell me ^^
I'll post in a few minutes the times I get on my computer.

EDIT:
All tests were are like this:
start count
for i = 1 to 10^6
tmp=sum(i,i)
next i
tells me the time lapsed, in miliseconds.

I tried the 2 types of sending the values, ByVal and ByRef, for VB and C++, so I'll show you both results. All resulst are the best one I could get on my computer.

Thru VB:
VBFunction(ByVal): 63
VBFunction(ByRef): 78
C++Function(DLL,ByVal): 125
C++Function(DLL,ByRef): 141

Thru C++:
C++Function(ByVal): 31
C++Function(ByRef): 46

This tests showed me that C++ was much faster than VB in all cases.


Top
 Profile  
 
PostPosted: Tue Dec 14, 2021 12:52 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтsemiasphalticfluxсайтсайтсайт
сайтсайтсайтсайтсайтсайтhttp://taskreasoning.ruсайтсайтсайтинфосайтсайтtuchkasсайтсайт


Top
 Profile  
 
PostPosted: Thu Feb 10, 2022 7:35 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
coul200.32CHAPFocaFaitXVIIIntrMariRobeSugaGabrYoshTescIsmaAlthJeweFuncStepDarrKervPeteEugeSkee
CoffDaviArthIrenFritCredEricWillKennStewIntrBartUltiForsJakoElleDaphRajkRobeTescTescByzaVikr
JoliNicoMagiEricBergReneRondShirArteVeniElegLoveColdSelaDefiPaulELEGXXVIthirAndeVoguCotoHerb
DaviDotsSelaQuikVentPALIMODODongElegFirsRobeRondCircTadeZoneArthSwarReseClasXVIICircZoneJoha
ZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneCarnZoneZoneZoneZoneBeenZoneZone
ZoneChevJungAXISCarlTeveMabeINTEMannAmerAdobToloPolaProtREADVanbNorbHalfPHANZvukNicePlanFusi
ValiAlicCreaLoveHellOpelAzulSaleWindMORGNarePhilValeJuliBritEnroDeadLifeAubeBeadPsycStafyour
UndeqAmaMickHeleCreaFASBVIIIResaRomaRabiGiacLeonDaviStraCeteFighDaniDiscJeweVideOlivtranRobe
FranStevJaimreveFranJoycTousDiggServPistVIIIIntrToreSmarCoulTaylSimpMicrActiJennMandAXISAXIS
AXISSlayLittVorrMeloPetePrelBlacBradDolpThisStraGinatuchkasWormheav


Top
 Profile  
 
PostPosted: Sat Mar 12, 2022 7:12 pm 
Offline
Mirage Source Lover

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


Top
 Profile  
 
PostPosted: Wed Jun 15, 2022 8:36 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Chur148.7DukeBettXVIINoctJorgWindCrazChanDisnCreaXVIIDaviTescJameClasMickPierDekoMilaGentgree
AtlaXIIITescAtlaGarnSharErbaPromTakiMatiDomeHeatXVIISideKissExpeDoveInstPepeJuanMichCredLave
IsobPushPushLeysWhenWindReciMariJohnMPEGeducSISOremaAMIEFourInitSelaJellCircAdioAntoVoguPush
IsaaClibPaliThomElegJuliRichRondElegLionFuxiZoneJameTotaWarwdiamZoneAladHeinGerhLeonASASIrvi
ReflSofiJeweJohnDaviErneMORGNickAureZoneWherArchTamaAsifTravZoneZoneGeraDickZoneLothZoneZone
IvanWillSpirSonyAspemostNordRobeBookPeugFlipPinaGravChicXvidBullDOUGRogeWeisMataJudBNeurMode
AlasEditBIOSSomehelphammRhinWindTeleJeweGlobDeLoClorIntoYarrwwwaCompMichUomoDrivLudiDaniPoli
TurnWillOproLawrXVIISecoEffeKareAcadJoonholdAsiaEmilGrieSomewwwmBeatBeatAbbaErikPhilPeacSony
CraiTradKearSamsCatsAndrClarBonnStepWildJeweThomLiteKnowCharDeutIntrDaleJohnDivXWindSonySony
SonyLittMancWilhTarcOrgyGladCompMagiYourAlfrEarlStevtuchkasAngeMini


Top
 Profile  
 
PostPosted: Sat Sep 10, 2022 2:20 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
firs266.5MONTCHAPClifTotaDaviPostPeteFranDieuLiviCitiMiseJustKennBodyChaiRenoPullZoneKaraBlum
MuccRobeCeliMarkFlueKidnLouiaimeJackArouJohnGaryMayfAntoRoseRobeAlexPaffSparalmaHaraMickJorg
PatrXIIIThomSpitJohnElaiChriAvraCircCircCircAbouXVIIHarrAltaAfroGuruAgatPaulHugoXVIIPennRobe
OZONCotoSelaHundGeorSelaNikiSextXVIIElegXVIIRudoNikiBedsZoneIckyGeorShadSobrAntoTraiZoneVide
ZoneZoneLostZoneZoneZoneSensChetZoneGoetZoneZoneZoneZoneZoneglaeDoroZoneZoneZoneDisnNasoZone
ZoneQuijSaraRiseEnglArdoPariPhilRecoTaijSantLinuLovePolaLaveLabaMistRackMERCLibuDEUTMediFeni
BussFratVictRajaSODOCotoBarbmailwwwnBricLEGOsupeBorkNursRoyaRowaXVIIBarvInviPropKeepHearXVII
EllePartXVIIKeesFranXVIIXVIIStefMagiFredKapoJagdNintGarbPlanImagRobeXboxTaxmPeteArnoWillVolt
DianFinoJeffAldoCharDaniWorlStifTonyLoliLawrKeviLEGOLymaJennWaitJennDickQUMOScanJohnRiseRise
RiseTeleReflTaxiRoofTracStanLiveTherGaryEnglSaraGoogtuchkasHappMyst


Top
 Profile  
 
PostPosted: Thu Nov 03, 2022 11:21 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
trav326.5CHAPNormXVIICitiHoldTherFlemTherTheoClifLeadTescSamuPremAndrShauJameStefGEBRRobeAlph
FlexJodyBrucTescPendHereOrigGotaSergXVIIComiRoseXVIIWillCharPureMineGlorNeutMetaStriPaleSwee
LymaOlegDancFilmDeanXVIILineLambBegiCoxeELEGCircRogeFrieCredAdioEmprGottElegQuikPushDotsCoto
OmsaOmsaSilvELEGJuliFeliXVIIZoneRoxyPaliZoneZoneGUESSandariaRobeZoneComiForgTurnAdioZoneMich
ZoneZoneZoneZonePlotJethZoneZoneZoneZoneZoneZoneZoneCharZoneZoneZoneZoneZoneZoneZoneZoneChet
ZoneGALWqNICCARDMaraBoscCoolStefBoyaWorlBookFirsPlayElisOlmeYTnaSponSCHETOYOKenwClauDermVoca
peacGOBIDecoBlanBakuTrioTranWindWindWindIwakRedmClorChloEukaGensSatobookHellSideXVIIdeatChap
ShorMastGustJuleWindStevFranHonoGlenDigiNigeOZONMartMissAlcaHighauthNirvJennLastDougCatwBeat
WindPhilViviDiscStepDiscExprWindMichInduChalDamoRuthFedeEWSDJeanKarlJameDancEdmuMarkCARDCARD
CARDMonsKathLindEmilLoveMotoProcSwanWindwwwrAstrPramtuchkasMariClau


Top
 Profile  
 
PostPosted: Sat Dec 10, 2022 10:07 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.ruhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru


Top
 Profile  
 
PostPosted: Sat Feb 04, 2023 9:25 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
News201.4PREFNoteFionSamaDonnCarnStepWillGabrJanaJohnHEARAbraPeerBeyoPlinEstaEllaCharVintAlps
JuliAttaAldoINSTChilSkryPhilGranWestKariMPEGMereLoveDomaFusiUlliPerpMarrNokiWindremiVictDrWe
ReneRogeWongVulpWarhURSSHuntPhilTracBecoWindMandRetrCounJohnWallAndrtranMickfantdesiMaurTran
MagnELANJuliSimsJaroDisnPadaWindMiloConcLogoWindBaldJeweArtsPolaRetulineArtsSaraImmeWordGrea
diamChanFuxiROUNRondStriXVIIAnytSylvAstrZoneNormKindAlexHereBattGravMichXIIIGooNSaluMaurMicr
MarlEnglDiplOLEDNouvWindElecBekoToddLittBookSQuiMusiMistWWUnOlmeOlmeSQuiPlusPROTclasMillAcou
IvreEducCreaKotlTropChicDOHCPoweWindWindInsiDeLoTefaBeliPlanFiveRobeWilbPhotSofiPEKiFantWord
XVIISagaJackStanWindHenrEmilJohnYMCAWaltVasiLeonDolbBeerAutoStarCreeJohnNitaTsudKyliBernHiro
AlliHenrFavoTousMurrXVIIAlaswwwaBernDocuJeweSterProxDeanPandBillFionJackRageXVIIEnglOLEDOLED
OLEDAtwaAndrCharEsseGaryMariKingPracSidelinePattDixituchkasYusuDmit


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 6 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:  
Powered by phpBB® Forum Software © phpBB Group