#monogame-and-libgdx-dev

1 messages · Page 4 of 1

quiet ibex
#

and its simply the correct way of doing content loading

hot hazel
#

and things like hot reloading

quiet ibex
#

hot reload also works the same regardless of if the content came from a source asset or an xnb

bright hazel
#

how can i redraw only portion

#

like i have background and i dont want redraw it each frame

#

just the player

bright hazel
#

just a simple question should i assign value of my variables in loadcontent or initialize

quiet ibex
bright hazel
#

wdym demand

quiet ibex
#

when needed

bright hazel
#

really?

#

but why do i have 20% gpu usage when i am just calling draw with one sprite

quiet ibex
#

yes, its simply quicker for a gpu to do lots of the same work instead of having it pick between doing one thing or another

bright hazel
#

ok

#

so i dont have to mind the gpu usage?

quiet ibex
#

the gpu is always working towards the target framerate, so you can't trust usage numbers between 0% and 100%

#

all you know is if you're at 0% its doing nothing and if its at 100% you're reached the limit

bright hazel
#

ok

hot hazel
#

also its a game, dont worry about usage 😛 (optimize but dont fret)

limber matrix
#

We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.

  • Donald Knuth
hot hazel
#

Sure

bright hazel
#

guys i have problems with tiled sharp... it is throwing an error:
System.IO.FileNotFoundException: Could not find file 'C:\Users...\platformer\platformer\bin\Debug\netcoreapp3.1\testing.tsx'.

#

when i call new TmxMap(path)

bright hazel
#

mapTestUwU.tmx this is the maps file name

#

ok i found that the error occurred in this line:
map = new TmxMap("mapTestUwU.tmx");
i tried even this:
map = new TmxMap("Content/mapTestUwU.tmx");

quiet ibex
bright hazel
quiet ibex
#

problem is you're using the wrong library for the job. that one can't deal with content

#

and as such you're forced to ship the source assets manually and do the slow parsing at runtime

#

and you won't be able to pre-process it in an automated fashion either, so its gonna be all manual

bright hazel
quiet ibex
bright hazel
#

lol i tried that too

#

i will try it again, thanks!

bright hazel
#

why is my tileset weird

#

okay i find out that the id is moved by 2

earnest yew
#

None.

#

Zero.

#

And considering F#'s idiotic syntax, you shouldn't really use it, ever.

swift crater
#

Alright good to know

#

If I may ask, what makes the syntax "idiotic"?

hot hazel
#

things that are different, mainly for the sake of being different