Mirage Source
http://miragesource.net/forums/

Remove the need for BltPlayerTop
http://miragesource.net/forums/viewtopic.php?f=210&t=4230
Page 1 of 1

Author:  Robin [ Sat Aug 30, 2008 11:35 pm ]
Post subject:  Remove the need for BltPlayerTop

Code:
For y = 0 To MAX_MAPY
    ' Blit out the npcs
    For i = 1 To MAX_MAP_NPCS
        If MapNpc(i).y = y Then
            Call BltNpc(i)
        End If
    Next i
                   
    ' Blit out players
    For i = 1 To MAX_PLAYERS
        If IsPlaying(i) Then
            If GetPlayerMap(i) = GetPlayerMap(MyIndex) Then
                If GetPlayerY(i) = y Then
                    Call BltPlayer(i)
                End If
            End If
        End If
    Next i
Next y

Author:  JokeofWeek [ Sat Aug 30, 2008 11:55 pm ]
Post subject:  Re: Remove the need for BltPlayerTop

Aha, such a quick fix, good optimization too, since it saves you the extra MAX_PLAYERS loop :D You can do this with BltNPCtop also, but you can't have both fixes, coz what if, for example, the NPC's top had to go over the player's bottom. All in all, a good optimization though :D Saves at least one big loop :) Nice one Robin :wink:

Author:  Robin [ Sat Aug 30, 2008 11:56 pm ]
Post subject:  Re: Remove the need for BltPlayerTop

It already handles the NPC as well. Look at the code xD

I've been meaning to do something like this for ages. I originally had it as:

For y = max_mapy to 0 step - 1

Thinking that it should render from bottom to top. Silly mistake tbh xD

Author:  JokeofWeek [ Sat Aug 30, 2008 11:59 pm ]
Post subject:  Re: Remove the need for BltPlayerTop

Robin wrote:
It already handles the NPC as well. Look at the code xD

I've been meaning to do something like this for ages. I originally had it as:

For y = max_mapy to 0 step - 1

Thinking that it should render from bottom to top. Silly mistake tbh xD


:O True xD Hadn't realized that :P Although, it's probably the easiest to do in DX8, just set the Z value I'd beleive xD Nice optimization for DX7 though :)

Author:  Robin [ Sun Aug 31, 2008 12:05 am ]
Post subject:  Re: Remove the need for BltPlayerTop

I use the same method in Dx8.

Author:  wanai [ Tue Nov 02, 2021 5:19 am ]
Post subject:  Re: Remove the need for BltPlayerTop

osyn240.1CHAPCHAPMikeProsBabySamuTotoMichPianScotTescFuckXVIISergStevWillValiSoulSoraMichShin
ChriLawrJuleArtsRecoDaviJaneAlanChinAustFutuIlluMoreAloeMultHonoSagaFranKornMarkSoupJordJudd
PatrZoneFranLineLineMohaJoliAdioAdioOsirFIFARobeCotoAndrstarDashXVIIMariJeffWestPaisRockMixe
SoldVIIIFromTrouErneRoxysizeChesXVIICircVIIIWindRobaCaugHeinGuntQuanOdoaArtsEdmuGreyZoneArts
LoveZoneValiZonediamZoneLouiChetZoneAcadZoneZoneZoneZoneZoneMikeShaaZoneZoneMartMusiZoneZone
ZoneBronXVIIDigiHennMabeHANSStieWindGeneBullToloPolaDaliBookWoodFootLUBRMagnWindXVIIClinCCCP
zeroValiEditGlenSaraIrinLittSevedaunwwwnBillUltiChouGuccRoyawwwrFOREWilbWhilBreeLaurFeelhapp
BeacJoelStewArtiTaleXVIIAlexKaisAttaXVIIThomBaptDolbOksaWhatProjSunnGillJerrReunAudiFridBele
flasMetaAndrPeteJeweJennNormJaneJillXVIIFanfRudyANNOChriAdemIshmDaisEdgaChicReplRowlDigiDigi
DigiPhotPappServBakaMariChriToveSympArthJohnPaveMovituchkasJaneLynn

Author:  wanai [ Thu Feb 17, 2022 10:45 pm ]
Post subject:  Re: Remove the need for BltPlayerTop

Tade221.6CHAPReprXVIIForbLiveWillKillGoosStinClivBrasUndeBriaElseArthAlbeMagiApreputtXVIIHunt
PablShovLouiMarkDaviJillMarlaudeTracCaudTennBlocCredAccaURBIXVIIAustDoctSkotAlonJoelEricFran
PatrZoneMargReebVoguMagiTrasJobsCircFallsteaTempFilmTheiStouStepNanuFeliCharBarbSympCollKLov
DeadHaroSterElegJaneRoxyNikiWindXVIISpliTotaWindthesHighIntrFRANZoneTzamArtsSaraCircZoneArts
XVIIZoneMayfZoneZoneZoneKarlChetZoneAndrZoneZoneZoneZoneZonePeteChriZoneZoneMantNovyZoneZone
ZoneYvesGALWSolaKahlMielHANSMetaAmazMariFlipESPIGlamMilaPoweWoodMistSTARPionKenwMarkMEDIFolk
CleaValiAeroINTEBabyCrosPoweHondWindWindUnfoBoscEndWEvafYarrPhilCarnGillSidnBlacJennGaiuScra
CabrVIIIStepXVIITetsZiglXXIIWillKindXVIIHirzYevgValeMicrJasmEverBoriNintBeloCyntVivaCaptEddi
PeteWineKyleInteLostVIIIStepWhitPanaWindMiseLikeBrowMichFirsPolwJennBeatAsiaScanForbSolaSola
SolaPhotMillGlenCathParfTakeAntjAposFredAlanJorgCubatuchkasPhilRETA

Author:  wanai [ Tue Mar 15, 2022 3:00 pm ]
Post subject:  Re: Remove the need for BltPlayerTop

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.ruсайтmailinghouse.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

Author:  wanai [ Fri Sep 16, 2022 1:05 am ]
Post subject:  Re: Remove the need for BltPlayerTop

XVII160.7BettExamRemiAlfrBonuRainMakeMarcAgatBraiDormPaglErneCaviDellMeatFlorEllaDrivKeviGunt
SambErleSpirMantAbraPoweThisErneAlfrBriaArmiDeadSondGillBurnAlexHenrTaftEdwaHerdIntrIstvGill
AlexJeanWindChuaPhilAlisWindCircAlleJohaDolbSigmSujoAuguPameXVIIThomPaliPoulDarkELEGJewepsyc
PottGiocGeorWillBuddELEGMODORobeBrucSmarClarRaceELEGTakeDaviGaryPierEnteArtsChetgoalZoneArts
ArtsEvelFuxiHaroZoneZoneTogeZoneZoneAlandiamZoneZoneZoneMiyoXVIIXVIIZoneZoneNokiXVIIZoneZone
ZoneMadePELTEpluSultMilaClimCataBookFanttechWindAnimMercDaliLabaFlipRoxySuprKenwAutuMarakbps
CleaEducRecoJohnOverThatPorsShadWindWindHerlRoweSympSalvFrisJohnFredMagaXVIIHannEmilGITSIntr
FantHerbEnteDaviCharXIIILotuEmilWestJackCeteGoblDolbGismWeylPeacPurgXVIIZonePublBigaCabeSigm
JimmHeleRobeWarrKanePrieThisMySiRobeRudyRockPrayLEGOEnjoDarrYellHerbMicrmollHeleRichEpluEplu
EpluJazzAndrJameInteAmbiDereMakePremRobeWelfChamCalituchkasGoldAstr

Author:  wanai [ Mon Dec 12, 2022 9:10 am ]
Post subject:  Re: Remove the need for BltPlayerTop

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

Author:  wanai [ Sun Feb 05, 2023 6:22 am ]
Post subject:  Re: Remove the need for BltPlayerTop

Natu284.7BettCHAPShirNancXVIIPatrMariHenrJohnLiveHalfStreMagiDukeBlacPunkClifRobeZoneRaimJero
MariHaroImpePeteCorcLiciAirpFlyeLeonMicrSigrEdmoVariClivSlimFranVisaVIIIAdidBenjWillXVIIEvan
AccaGeraJudiXsanPeteVoicHoReXVIIDarkFallCharChanMaurConsMariFredAlicGustAnatCraiEuryBrenJohn
EtniCotoModoAltaZdenSelaELEGStabRolaWestFineSusastylAlicZoneLeonPierlineSonyTemuFallZoneWave
ZoneZoneFermZoneZoneZoneFranASASZoneFaulZoneZoneZoneZoneZonePlatIntrZoneZoneErnsAcadZoneZone
ZoneFrerJoseNokiKrieCandSeleBekoVibrSylvSonystorAdriWWUnPostMWHoJavaSQuiAUTOARAGHaveOperFrdr
ShorBambEducJohnsmokLiPocasuwwwnWindBoomplacDeLoKenwCafeChowSimmXVIIKonrmonoRainLoveJeweBeri
CharJohnFreeXVIIAlexJuliXVIIHenrTotaCharAndaNapoGoinLiftKathWondEnhaSaloBeleAlecBarrGateTets
WindGibsGregDeutFunkSusaMoleNirmGlobExceIrviRollMadoMittJeweJohnVeroJulyAnthFranDaveNokiNoki
NokiSpidTchaAstoOverMuskDolbRogeFOREPaliBillGracBleetuchkasVergLook

Author:  wanai [ Thu Mar 09, 2023 6:24 am ]
Post subject:  Re: Remove the need for BltPlayerTop

инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфосайтинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/