Hi,
I found out that when I set up Particles for an iOS app, it stutters at the beginning. This when installing the app in an iPhone 6 or an iPad 2gen, using the latest Xcode. Oddly enough, this problem does not appear on an iPhone 5s, wherein the code runs smoothly right from the beginning. All three devices run on the same iOS version (9.3.5) . I am attaching the code of "template.cpp"
// Includes
#include "template.h"
// Namespace
using namespace AGK;
app App;
void app::Begin(void)
{
int app_w;
int app_h;
app_w=agk::GetMaxDeviceWidth();
app_h=agk::GetMaxDeviceHeight();
agk::SetVirtualResolution(app_w,app_h);
agk::SetClearColor(0,0,0);
agk::ClearScreen();
agk::CreateParticles(1,app_w/2,app_h/2);
agk::SetParticlesSize(1,1);
agk::SetParticlesVelocityRange(1,15,20);
agk::SetParticlesFrequency(1, 80);
agk::SetParticlesLife(1, 8);
}
int app::Loop (void)
{
agk::Sync();
return 0; // can't close app on iOS
}
void app::End (void)
{ }
How can this be fixed?
iMac Book Pro
MacOs 10.12.4
Xcode 8.3.2
iPhone 6, iOS 9.35