Recent

Author Topic: Howto : Double buffer with jCanvas and jBitmap  (Read 478 times)

biologic

  • New Member
  • *
  • Posts: 31
Howto : Double buffer with jCanvas and jBitmap
« on: February 14, 2026, 06:42:42 pm »
I´m making a Pong game and needed to do doublebuffering for the elements drawn on the canvas.

I have a jView, a jCanvas and a jBitmap for the front buffer.
And a jCanvas and a jBitmap for the backbuffer.

However, I can´t get this doublebuffering right.

Anyone knows how to do this ?

I can post what I have so far, if this helps..

Thanks.

Seenkao

  • Hero Member
  • *****
  • Posts: 744
    • New ZenGL.
Re: Howto : Double buffer with jCanvas and jBitmap
« Reply #1 on: February 15, 2026, 07:35:57 am »
Hi!

Всё что я могу сказать, это то, что LAMW не лучшее решение для создания игр (уже много раз об этом писали).

--------------------
Google translate:
All I can say is that LAMW is not the best solution for creating games (this has already been written many times).
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

biologic

  • New Member
  • *
  • Posts: 31
Re: Howto : Double buffer with jCanvas and jBitmap
« Reply #2 on: February 15, 2026, 08:11:52 am »
Hi

Thanks.

I'll try another language for games.

Seenkao

  • Hero Member
  • *****
  • Posts: 744
    • New ZenGL.
Re: Howto : Double buffer with jCanvas and jBitmap
« Reply #3 on: February 15, 2026, 08:47:20 am »
biologic, для игр не обязательно выбирать другой язык. Достаточно взять движок, который подходит именно для игр.

Суть вся в том, что (по большей части) работа игры должна происходить на одном экране с высокой производительностью. Это не значит что невозможно создать с помощью LAMW игру, это означает, что производительность у такой игры (особенно трёхмерной) будет низкая. Но если ваша игра не требует большой производительности, то вы можете использовать и LAMW.

Выбирая другой ЯП, вы столкнётесь с той же проблемой, где вам посоветуют взять движок для создания игр. Потому что они на это заточены.  ;)

--------------------------
Google translate:
biologic, you don't necessarily need to choose a different language for games. It's enough to choose an engine that's specifically suited for games.

The point is that (for the most part) a game should run on a single screen with high performance. This doesn't mean it's impossible to create a game with LAMW, but it does mean that such a game (especially a 3D one) will have poor performance. But if your game doesn't require high performance, you can use LAMW.

When choosing another programming language, you will face the same problem where you will be advised to take an engine for creating games. Because that's what they're designed for. ;)
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

biologic

  • New Member
  • *
  • Posts: 31
Re: Howto : Double buffer with jCanvas and jBitmap
« Reply #4 on: February 15, 2026, 09:22:37 am »

Thanks for your advice.

 

TinyPortal © 2005-2018