Re: [SailfishDevel] problem with libpng

2016-11-09 Thread Coley
Why is there a need for three versions?
Can the modified images not be used on all the platforms?

-Coley.


On 9 November 2016 at 06:49, Iosif Hamlatzis  wrote:

> Good morning Coley and fellow developers
>
> thank you for the feedback. In this version I had removed all problematic
> chunks from images. That means there is a difference between the first
> Jolla device and JollaC device. Also since I see no problem on the emulator
> it's my belief that Jolla should provide 3 emulator images one for each
> device (Jolla, JollaC and tablet)
>
>
> On Wednesday, 9 November 2016, Coley  wrote:
>
>> Tried on Jolla C, black screen unfortunately. Game is running as you can
>> hear sounds when you touch screen.
>> -Coley.
>>
>> On 8 Nov 2016 10:17, "Iosif Hamlatzis"  wrote:
>>
>>> https://www.dropbox.com/s/y90m4bfgzafnge6/harbour-vintagerou
>>> lette-1.0.1-2.armv7hl.rpm?dl=0
>>>
>>> https://www.dropbox.com/s/ln3jmm0jbtgz9sf/harbour-vintagerou
>>> lette-1.0.1-2.i486.rpm?dl=0
>>>
>>> As I hate to resubmit to market and have my game rejected for the same
>>> reasons, can anyone with JollaC device and/or tablet try and tell me if the
>>> game plays on their device? or if they just see a blank (or black) screen?
>>>
>>> I really appreciate it.
>>>
>>> thnx in advance
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>
> --
> Sent from Gmail Mobile
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-08 Thread Zoltán Lutor
that would be really sad. platform fragmentation with three existing
devices?!
even Android was able to manage better... :)

2016-11-09 7:49 GMT+01:00 Iosif Hamlatzis :

> Good morning Coley and fellow developers
>
> thank you for the feedback. In this version I had removed all problematic
> chunks from images. That means there is a difference between the first
> Jolla device and JollaC device. Also since I see no problem on the emulator
> it's my belief that Jolla should provide 3 emulator images one for each
> device (Jolla, JollaC and tablet)
>
>
> On Wednesday, 9 November 2016, Coley  wrote:
>
>> Tried on Jolla C, black screen unfortunately. Game is running as you can
>> hear sounds when you touch screen.
>> -Coley.
>>
>> On 8 Nov 2016 10:17, "Iosif Hamlatzis"  wrote:
>>
>>> https://www.dropbox.com/s/y90m4bfgzafnge6/harbour-vintagerou
>>> lette-1.0.1-2.armv7hl.rpm?dl=0
>>>
>>> https://www.dropbox.com/s/ln3jmm0jbtgz9sf/harbour-vintagerou
>>> lette-1.0.1-2.i486.rpm?dl=0
>>>
>>> As I hate to resubmit to market and have my game rejected for the same
>>> reasons, can anyone with JollaC device and/or tablet try and tell me if the
>>> game plays on their device? or if they just see a blank (or black) screen?
>>>
>>> I really appreciate it.
>>>
>>> thnx in advance
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>
> --
> Sent from Gmail Mobile
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-08 Thread Iosif Hamlatzis
Good morning Coley and fellow developers

thank you for the feedback. In this version I had removed all problematic
chunks from images. That means there is a difference between the first
Jolla device and JollaC device. Also since I see no problem on the emulator
it's my belief that Jolla should provide 3 emulator images one for each
device (Jolla, JollaC and tablet)

On Wednesday, 9 November 2016, Coley  wrote:

> Tried on Jolla C, black screen unfortunately. Game is running as you can
> hear sounds when you touch screen.
> -Coley.
>
> On 8 Nov 2016 10:17, "Iosif Hamlatzis"  > wrote:
>
>> https://www.dropbox.com/s/y90m4bfgzafnge6/harbour-vintagerou
>> lette-1.0.1-2.armv7hl.rpm?dl=0
>>
>> https://www.dropbox.com/s/ln3jmm0jbtgz9sf/harbour-vintagerou
>> lette-1.0.1-2.i486.rpm?dl=0
>>
>> As I hate to resubmit to market and have my game rejected for the same
>> reasons, can anyone with JollaC device and/or tablet try and tell me if the
>> game plays on their device? or if they just see a blank (or black) screen?
>>
>> I really appreciate it.
>>
>> thnx in advance
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>> 
>>
>

-- 
Sent from Gmail Mobile
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-08 Thread Iosif Hamlatzis
https://www.dropbox.com/s/y90m4bfgzafnge6/harbour-vintageroulette-1.0.1-2.armv7hl.rpm?dl=0

https://www.dropbox.com/s/ln3jmm0jbtgz9sf/harbour-vintageroulette-1.0.1-2.i486.rpm?dl=0

As I hate to resubmit to market and have my game rejected for the same
reasons, can anyone with JollaC device and/or tablet try and tell me if the
game plays on their device? or if they just see a blank (or black) screen?

I really appreciate it.

thnx in advance
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Zoltán Lutor
Hi,

You can try to remove iCCP with this tool: https://tinypng.com/

Br,

Zoltan

2016-11-07 10:46 GMT+01:00 Iosif Hamlatzis :

> From the harbour market they send me a new explanation for rejecting the
> game. This time due to warning:
>
> "This is the warning message in logs about the issue: Sailfish
> lipstick[1201]: libpng warning: iCCP: known incorrect sRGB profile"
>
> In my QtCreator I don't get any such message when validating the .rpm
> files.
>
> They told me they use JollaC device with 2.0.4.14 image. So is there an
> emulator image I can download of this device so that I can test my game on
> this device also? Because on my emulator and on my actual (original) Jolla
> device the game runs perfectly.
>
> Also, when Googling the above warning I get that this is from libpng 1.6
> and some people say a quick solution is to use software to remove the
> problematic "chunk". Any ideas on the matter?
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Iosif Hamlatzis
Thnx all

For rendering I am using OpenGL ES through SDL2 library. My game is pure
c++ no Qt or whatever.

I have created a common framework (graphics & logic) for gambling games.
Since SDL2 library currently has a bug and doesn't support landscape under
Jolla have decided to create a roulette, in portrait.

For the roulette game which is simple (only 37 numbers) I could simplify my
RNG, but have to think what to do with slot games (eg 5 reels with 12
symbols per reel out of 13 different symbols, which is common) and bingo
selecting 5-8 numbers out of 40 and at the same time maintaining game's
"payback" percentage. Have to think about refactoring the code.

Thnx!

On Monday, 7 November 2016, Slava Monich  wrote:

> Regarding power consumption.
>
> I doubt that you need to run you RNG or whatever when the screen is locked
> and the display is switched off. That's one direction in which you can
> optimize your code, i.e. pause the game when the screen is locked and the
> display is off and resume it when the display is turned on.
>
> Another thing is that JollaC has significantly more pixels than Jolla1
> (and tablet has even more). If you are doing some sort of pixel graphics,
> that may have quite an impact on performance. In that case you may consider
> switching to scene graph based rendering (http://doc.qt.io/qt-5/
> qtquick-visualcanvas-scenegraph.html) which can use whatever hardware
> acceleration is available on the device (if you do it right).
>
> Cheers,
> -Slava
>
>
> I can disregard it as long as they don't reject my game. But it's one of
> the reasons they rejected my game.
>
> It seams the new libpng regards this as error and not warning because
> according to what they say, under JollaC device nothing is rendered on the
> screen. So I presume the installed libpng on their JollaC device stops
> loading my pngs
>
> I don't have access to a JollaC device so is there an emulator image
> 2.0.1.14 for for the JollaC device I can use to test my game?
>
> The other reason for rejecting my game is too much power consumption on
> their device. On my device I don't see that much. But I am not sure if I am
> going to do something about it because I need my game to run even when in
> the background. I have created a gambling game and I need my RNG
> (Random Number Generator) to run even on the background, because when I
> tested with pausing the game when going to background it got a
> bit predictably.
>
>
>

-- 
Sent from Gmail Mobile
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Slava Monich

Regarding power consumption.

I doubt that you need to run you RNG or whatever when the screen is 
locked and the display is switched off. That's one direction in which 
you can optimize your code, i.e. pause the game when the screen is 
locked and the display is off and resume it when the display is turned on.


Another thing is that JollaC has significantly more pixels than Jolla1 
(and tablet has even more). If you are doing some sort of pixel 
graphics, that may have quite an impact on performance. In that case you 
may consider switching to scene graph based rendering 
(http://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html) which can 
use whatever hardware acceleration is available on the device (if you do 
it right).


Cheers,
-Slava


I can disregard it as long as they don't reject my game. But it's one 
of the reasons they rejected my game.


It seams the new libpng regards this as error and not warning because 
according to what they say, under JollaC device nothing is rendered on 
the screen. So I presume the installed libpng on their JollaC device 
stops loading my pngs


I don't have access to a JollaC device so is there an emulator image 
2.0.1.14 for for the JollaC device I can use to test my game?


The other reason for rejecting my game is too much power consumption 
on their device. On my device I don't see that much. But I am not sure 
if I am going to do something about it because I need my game to run 
even when in the background. I have created a gambling game and I need 
my RNG (Random Number Generator) to run even on the background, 
because when I tested with pausing the game when going to background 
it got a bit predictably.




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Luciano Montanaro
The latest sdk should be aligned to the 2.0.4 release.

As for your other problems:

There are a few different suggestion here for the png problem:

http://stackoverflow.com/questions/22745076/libpng-warning-iccp-known-incorrect-srgb-profile

I would start with the pngcrush solution.

As for random numbers:

Why can't you simply use /dev/urandom? If it is good enough for
crypto, it should be good for your case too.
And you do not need to generate numbers in background.

Regards,
Luciano

On Mon, Nov 7, 2016 at 12:00 PM, Iosif Hamlatzis  wrote:
> I can disregard it as long as they don't reject my game. But it's one of the
> reasons they rejected my game.
>
> It seams the new libpng regards this as error and not warning because
> according to what they say, under JollaC device nothing is rendered on the
> screen. So I presume the installed libpng on their JollaC device stops
> loading my pngs
>
> I don't have access to a JollaC device so is there an emulator image
> 2.0.1.14 for for the JollaC device I can use to test my game?
>
> The other reason for rejecting my game is too much power consumption on
> their device. On my device I don't see that much. But I am not sure if I am
> going to do something about it because I need my game to run even when in
> the background. I have created a gambling game and I need my RNG (Random
> Number Generator) to run even on the background, because when I tested with
> pausing the game when going to background it got a bit predictably.
>
>
>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org



-- 
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Iosif Hamlatzis
I can disregard it as long as they don't reject my game. But it's one of
the reasons they rejected my game.

It seams the new libpng regards this as error and not warning because
according to what they say, under JollaC device nothing is rendered on the
screen. So I presume the installed libpng on their JollaC device stops
loading my pngs

I don't have access to a JollaC device so is there an emulator image
2.0.1.14 for for the JollaC device I can use to test my game?

The other reason for rejecting my game is too much power consumption on
their device. On my device I don't see that much. But I am not sure if I am
going to do something about it because I need my game to run even when in
the background. I have created a gambling game and I need my RNG
(Random Number Generator) to run even on the background, because when I
tested with pausing the game when going to background it got a
bit predictably.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Luciano Montanaro
Hi Iosif,

you can probably disregard the warning.

It looks like it warns you that some section (chunk) of the png image
has incorrect data, but that will unlikely affect anything relevant.

sRGB is a color space, and it is useful to map colors correctly across
devices. But as long as the images look fine on your device, you are
ok.

There are tools to manipulate the image files, if the warning really
bothers you.
Check the various png optimizers. They will likely make your images smaller too.


Best regards,
Luciano



On Mon, Nov 7, 2016 at 9:46 AM, Iosif Hamlatzis  wrote:
> From the harbour market they send me a new explanation for rejecting the
> game. This time due to warning:
>
> "This is the warning message in logs about the issue: Sailfish
> lipstick[1201]: libpng warning: iCCP: known incorrect sRGB profile"
>
> In my QtCreator I don't get any such message when validating the .rpm files.
>
> They told me they use JollaC device with 2.0.4.14 image. So is there an
> emulator image I can download of this device so that I can test my game on
> this device also? Because on my emulator and on my actual (original) Jolla
> device the game runs perfectly.
>
> Also, when Googling the above warning I get that this is from libpng 1.6 and
> some people say a quick solution is to use software to remove the
> problematic "chunk". Any ideas on the matter?
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org



-- 
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org