diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-05-15 06:49:34 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-05-15 06:49:34 +0200 |
| commit | 2f1f5a23ea8a7cbace2c5e18996728adc572cbc0 (patch) | |
| tree | 57eaedcbb668edfb9de6aa538f55d352bba8f3f7 /src | |
| parent | 6e274fb5025108bbf7cbe8173ce00f444a5f4445 (diff) | |
| download | jetpac.nes-2f1f5a23ea8a7cbace2c5e18996728adc572cbc0.tar.gz jetpac.nes-2f1f5a23ea8a7cbace2c5e18996728adc572cbc0.zip | |
Decrease the capacity of bullets on screen
This fixes any frame drops I have experienced so far. This is not a real
fix since it is more likely that there's some part of the code that is
simply too slow. At some point I should investigate where is that, but
it will probably reappear whenever I start looking into enemies.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/bullets.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bullets.s b/src/bullets.s index ea224b3..736a226 100644 --- a/src/bullets.s +++ b/src/bullets.s @@ -4,7 +4,7 @@ ;; `driver.s` will use in order to render and deal with bullets on screen. .scope Bullets ;; Maximum amount of bullets allowed on screen at the same time. - BULLETS_POOL_CAPACITY = 20 + BULLETS_POOL_CAPACITY = 10 ;; Base address for the pool of bullets used on this game. The pool has ;; #BULLETS_POOL_CAPACITY bullet objects where each one is 3 bytes long: |
