FLOCKED & LOADED - Devlog

Do you need help with anything? Also, you should be able to hijack cars and shoot.

1 Like

Oh my goodness! Those trees look genuinely insane!!!

5 Likes

This looks super good, but the swaying trees seem to significantly dip the framerate

3 Likes

You should make a day and night cycle that also affects the shadows.

uhmmmmmm..

shhhhh, you’re just imagining things.
(Gotta fix that though, thanks for pointing it out.)

1 Like

Erm actually…..
I used rendered images so the swaying trees wouldn’t impact the FPS, but the shadows…. Oh the shadows. They’re cause performance to take a hit, even when updating them only once every 200 ms.

@richard, if you happen to have any advice on how to improve the frame rate, it would be greatly appreciated!

4 Likes

Aw, tysm!
It really makes my day to get compliments and feedback.

2 Likes

That’s the plan, I just gotta rework how cars are coded, right now they’re just rendered images…..

sigh this’ll be hard.
Although…. Do you happen to know how to make music?

1 Like

rotating big images is expensive, and you’re rotating a lot of big images. try caching the results, like this:

here’s the code with my changes:

7 Likes

this is such a help!
thank you so much!

so uh, I switched all the sprite data blocks to the improved sprite data blocks, and it seems I lost all the fps. it’s back down to 30 :(

Really sorry to be bugging you about this, and asking for your help, but… could you look into it? please?

this should be cachelength - 1 not 0 - cachelength

Okay… this is difficult. Probably make the cars face correct directions… and uh… like maybe make sprites a little less heavy