Recent

Author Topic: BGRABitmap slow on WinCE  (Read 2501 times)

SonnyBoyXXl

  • New Member
  • *
  • Posts: 44
BGRABitmap slow on WinCE
« on: September 26, 2017, 09:24:27 am »
HI folks,

I'm currently working on a WinCE program and want to use the great BGRABitmap library. The program is working. But it is very, very slow.
A tried some of the examples coming with CodeTyphon. The FPS goes down to around 3 frames per second.
Standard WinAPI drawings on CE are fast. It's a 1GHz ARM 7 processor.
I tried also double buffering, but also very slow.
What can be the reason?

Thx!

Thaddy

  • Hero Member
  • *****
  • Posts: 10516
Re: BGRABitmap slow on WinCE
« Reply #1 on: September 26, 2017, 11:30:39 am »
Probably that BGRA does not take advantage of the graphics card on your device?
Did you try optimizing the compiler settings for fpu?
Usually use opengles on wince or use standard GDI. That automatically supports the graphics card.
It may depend on your device though. But maybe BGRA even supports Opengl/opengles?

SonnyBoyXXl

  • New Member
  • *
  • Posts: 44
Re: BGRABitmap slow on WinCE
« Reply #2 on: September 26, 2017, 07:01:07 pm »
also tried now on Raspberry Pi v3. But also slow, even if a little bit faster.
Plama (Test Nr 10) of function test has 4 FPS, on Win7 PC it's around 100 FPS.

I will now try to adjust the compiler settings.

RAW

  • Hero Member
  • *****
  • Posts: 867
Re: BGRABitmap slow on WinCE
« Reply #3 on: September 26, 2017, 08:50:26 pm »
There is a CodeTyphon Graphics32 version for WinCE, isn't it ?
Maybe it's worth a try...  :)
Windows 7 Pro (x64 Sp1) And Windows XP Pro (x86 Sp3) - LAZARUS 2.0.8 FPC 3.0.4 - TRUNK 2.1.0 FPC 3.3.1
// This is polarity (hell) and hell is reigned by lies, nothing but lies. Be careful what you believe ...
// There are 10 types of people in this world, those who understand mind control and ...

SonnyBoyXXl

  • New Member
  • *
  • Posts: 44
Re: BGRABitmap slow on WinCE
« Reply #4 on: September 27, 2017, 08:46:35 pm »
I tried now to compile with settings -CfVFPV3_D16, but I get now the error "Fatal: Can't find unit system used by test".
Without the switch compiling is okay. what could be the reason?

fredycc

  • Sr. Member
  • ****
  • Posts: 265
Re: BGRABitmap slow on WinCE
« Reply #5 on: October 16, 2017, 04:28:28 pm »
Hi @SonnyBoyXXl, I had the same problem with version 1 of raspberry, I could never solve the same problem.  :(

Regards

 

TinyPortal © 2005-2018