r/learnjava • • Mar 12 '19

Game running slow?

So I've got a pretty simple 2d game going and it's running like max 70 fps, usually around 40. My PC can definitely do better. Where should I even start looking to fix this?

1 Upvotes

5 comments sorted by

10

u/[deleted] Mar 12 '19

Can we see your implementation?

10

u/desrtfx Mar 12 '19

Should we take our Crystal balls out and do some divination?

How should we know where to start looking without any useful information?

2

u/[deleted] Mar 12 '19

LMFAO

3

u/[deleted] Mar 13 '19

First, make sure to learn old Latin. This won't work unless you speak Latin.

Okay, so now, repeat this chant ad nauseam:

Computeris, fixus bugus

Computeris, fixus bugus

Computeris, fixus bugus

Makea usus of morae RAMus

Runa fasteris

if you do it right, the gods of computers will be summoned, and they will zap your computer with more speed.

1

u/Berliose Mar 12 '19

If you are using some form of game maker library those often have a variable somewhere for how often to update the screen. If you would provide your code people can actually help though :)