Jump to content

Today...


Leoo
 Share

Recommended Posts

I changed a single function (~4 LOC) and boosted FPS on lower-end CPUs to get 60 FPS. Wow. It was my Vector lerp function... I inlined the math instead of using operator overloads.

 

I also added a useful notification when you can't do something:

 

0MRs9gq.png

 

Pretty nifty...

  • Like 1

ozXHe7P.png

Link to comment
Share on other sites

Lua doesn't have many profilers so I nail down functions with custom profiling functions until I find the general area of the bottleneck. Then I used a more fine-grained approach with something called ProFi. ProFi is not too reliable with LuaJIT but it's good enough.

 

My AI framework is taking up the most time now but I'll optimize that later. It's probably hitting the GameDB too often. I went from ~5 FPS on Android to ~20 FPS with other optimizations. Want to hit 30 FPS.

 

I use lerp to allow from framerate independent rendering. My game could run at any FPS without any graphical artifacts. The logic runs at 10 FPS. There's a whole bunch of tweening functions that are great for adding polish to simple animations. Smoothstep is a good one!

  • Like 1

ozXHe7P.png

Link to comment
Share on other sites

Why is the AI interacting with the DB at all

 

I'd probably do something like have a bunch of dockerized microservices on my server.

 

Each one for a region of the game and keeping track in memory of which npcs are alive and where they're at now. And handles the respawn timers and stuff like that. So each phone running it is only sending/receiving packets saying redraw the npc at this coordinate

Link to comment
Share on other sites

Why is the AI interacting with the DB at all

 

I'd probably do something like have a bunch of dockerized microservices on my server.

 

Each one for a region of the game and keeping track in memory of which npcs are alive and where they're at now. And handles the respawn timers and stuff like that. So each phone running it is only sending/receiving packets saying redraw the npc at this coordinate

There's nodes like "FindNearbyCombatTarget" that have filters, and these filters can query things about potential targets. For example, Skelementals won't attack you if you're wearing tin or copper equipment (or are undead). Similarly, nodes like "GatherNearbyResource" need to query the GameDB for info about the props nearby.

 

The GameDB stores info about all the relationships in the game; it's immutable, but queries can get complex (think GraphQL, except not GraphQL). Game state will be serialized to something called PlayerStorage lazily so actual disk I/O isn't a problem.

 

...

 

I may have found an exploit in the RuneScape client (re: login process) that allows third-party programs to steal your password at any point after logging in, and is much more reliable than a keylogger... Jagex made a whoopsy. If someone were to find an remote code execution exploit in a program that a lot Scapers use, they could then retroactively obtain login details without having to wait for the user to login.

 

gotta make a proof of concept and get paid plsssssssss

 

iVHfwLc.gif

Edited by Veiva

ozXHe7P.png

Link to comment
Share on other sites

Bro my roommate is actual human garbage. He's had his dishes in the sink for somewhere around 9 days now. Actually not kidding or exaggerating. He asked me the other day why the kitchen stinks like something died, and when i told him that maybe it's because he's had his dishes in the sink for over a week, he just shrugged. Yesterday he told me that he's thinking of just throwing all his dishes in the trash and just cook using disposable shit because he's getting tired of washing dishes. If you're too lazy to wash a plate, a fork, a knife, and 1 pot/pan every night, you're just actual human garbage. I don't think i've ever thought as little of someone as i do of this guy. His personal hygiene isn't any better either. My god this kid is [bleep]ing gross. 

Link to comment
Share on other sites

Maybe you shouldn't room with a guy who considers cleaning to be servants work :lol:

Sadly i had no say in the matter. We're living in school accommodation so we got assigned roommates. Additionally, all the accommodation is filled at the moment, so there's no hope of me getting him out of here.

I'm stuck with this shithead till i'm done.

Link to comment
Share on other sites

I mean if he wants a war at home why not give him one? Exclusively shit with the door open in his bathroom. Hoard all of the paper products. Openly talk shit about him while on the phone/Skype when he's around. Eat his food from the fridge. You know all the worst shit

Quote

 

Quote

Anyone who likes tacos is incapable of logic.

Anyone who likes logic is incapable of tacos.

 

PSA: SaqPrets is an Estonian Dude

Steam: NippleBeardTM

Origin: Brand_New_iPwn

Link to comment
Share on other sites

I also have no disposal or dishwasher, but years of industrial kitchens have desensitized me to cleaning. I could do that shit for hours. I just need a beer

  • Like 1
Quote

 

Quote

Anyone who likes tacos is incapable of logic.

Anyone who likes logic is incapable of tacos.

 

PSA: SaqPrets is an Estonian Dude

Steam: NippleBeardTM

Origin: Brand_New_iPwn

Link to comment
Share on other sites

I have a dishwasher but I just wash everything by hand. The only thing that bothers me about doing dishes is when my fingers get all pruney.

 

I'd always rather just do my roommates' dishes than let them stink up the whole apartment. It sucks letting someone be a lazy brat, but I'm not gonna live in filth

Link to comment
Share on other sites

@Vieva you might like this https://improbable.io/

 

Even Jagex uses it

 

39e153acd306e8fc3a6897d19794aa46.png

Jagex using it is enough reason to turn around and run from it as fast as humanly possible.
  • Like 1

"Fight for what you believe in, and believe in what you're fighting for." Can games be art?

---

 

 

cWCZMZO.png

l1M6sfb.png

My blog here if you want to check out my Times articles and other writings! I always appreciate comments/feedback.

Link to comment
Share on other sites

I have a dishwasher but I just wash everything by hand. The only thing that bothers me about doing dishes is when my fingers get all pruney.

 

I'd always rather just do my roommates' dishes than let them stink up the whole apartment. It sucks letting someone be a lazy brat, but I'm not gonna live in filth

Bung everything in the dishwasher including his knives to make them blunt.

  • Like 1

Luck be a Lady

Link to comment
Share on other sites

I have a dishwasher but I just wash everything by hand. The only thing that bothers me about doing dishes is when my fingers get all pruney.

 

I'd always rather just do my roommates' dishes than let them stink up the whole apartment. It sucks letting someone be a lazy brat, but I'm not gonna live in filth

 

I'm passive aggressive enough to wash their dishes with a hammer or a blender

Link to comment
Share on other sites

I think this came out mostly great! Arms need to be slightly ... thicker? and I think her right hand looks kinda weird.

 

awfeCky.png

right hand looks like it's like a left hand...couldn't tell you why, I don't know anything about art. agreed on the arms. I like the style in general though

  • Like 1

polvCwJ.gif
"It's not a rest for me, it's a rest for the weights." - Dom Mazzetti

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.