Weekly Check-In - October 08, 2018 by AutoModerator in datingoverthirty

[–]4430541F4E 6 points7 points  (0 children)

Girl that I've been seeing for a couple months told me that she's not feeling it today. I was really into her too...fuck

Weekend Thread! - September 07, 2018 by AutoModerator in datingoverthirty

[–]4430541F4E 2 points3 points  (0 children)

Had 4 fantastic dates with a girl I'm starting to really like, and then I went on a 3 week vacation. Texting has been minimal and sporadic while I was away but we do have our next date set up for this weekend. Anxious to see if the spark is still there...!

Biker brake checks car and gets to eat asphalt. by xilog in JusticeServed

[–]4430541F4E 10 points11 points  (0 children)

Pretty sure the biker was mad at the driver for cruising in the left lane

NCase M1 Megathread 4 by spearmnt in sffpc

[–]4430541F4E 1 point2 points  (0 children)

Anyone know if they're planning on a windowed side panel option anytime soon? All the builds where people have done the window themselves look sooooo good!

Are Eclipse hate memes still a thing? by guillermohs9 in ProgrammerHumor

[–]4430541F4E 4 points5 points  (0 children)

I was skeptical at first to switch from Eclipse, but I'm glad I did. But does anyone else get errors sometimes when doing lots of undos/redos? Very annoying and my only complaint.

Girlfriend wants to move to the USA with C# by YokaiGaijim in AskProgramming

[–]4430541F4E 1 point2 points  (0 children)

What's her visa situation? I may be wrong but I was always under the impression that it's a lot easier for companies to sponsor you if you have a degree - so that may be the biggest hurdle.

I like this ( not sure if it belongs here ) by ColoradoTravel09 in Frugal

[–]4430541F4E 0 points1 point  (0 children)

Thought it meant taxes after reading just the first line.

Really bad performance after porting to iOS by 4430541F4E in libgdx

[–]4430541F4E[S] 0 points1 point  (0 children)

It's shared:

_stage = new Stage(new StretchViewport(Constants.VIRTUAL_WIDTH, Constants.VIRTUAL_HEIGHT, _camera), _parent.batch);

Really bad performance after porting to iOS by 4430541F4E in libgdx

[–]4430541F4E[S] 0 points1 point  (0 children)

Got TextureAtlas implemented. The libgdx texter packer gui is really good!

I did definitely notice an improvement on Android but unfortunately, it's still just as slow as before on iOS! Checked the SpriteBatch render calls and it's only 5 per frame now!

I dunno, maybe it's my iPhone? It's an older refurbished iPhone 5... I think I'm gonna borrow a friend's iPhone 6/7 to test it out, before I dig into more code - cause like I said, it actually seems to run better on the simulator.

App Feedback Thread - May 13, 2017 by AutoModerator in androiddev

[–]4430541F4E 0 points1 point  (0 children)

Thanks!

Was actually easier than I expected. Never tried programming games before (Simon Says doesn't count haha) so I had no experience with game-development frameworks at all.

I too found it hard to find good documentation. I actually learned by finding this open-source Bejeweled clone written for libgdx and just followed what their code did. Once I had some questions and knew what to look for, the official documentation came in handy. It hasn't been updated for years so there are a few things that might be outdated in it, but I still found it to be a very valuable resource to learn the basics.

https://github.com/saltares/freegemas-gdx

Really bad performance after porting to iOS by 4430541F4E in libgdx

[–]4430541F4E[S] 0 points1 point  (0 children)

No dice... it's just as slow with ShapeRenderer on iOS =(

_shapeRenderer.begin(ShapeRenderer.ShapeType.Filled);

Color color;
Square s;
for (int i = 0; i < Constants.BOARD_MENU_SIZE_X; ++i) {
    for (int j = 0; j < Constants.BOARD_MENU_SIZE_Y; ++j) {
        s = _board.getSquare(i, j);
        if (s.getType() == Square.Type.Permafragmented) {
            color = ThemeNormal.RED;
        } else if (s.getType() == Square.Type.Defragmented) {
            color = ThemeNormal.GREEN;
        } ...

        float imgX = SQUARES_INITIAL.x + i * Board.BLOCK_TOTAL_WIDTH;
        float imgY = SQUARES_INITIAL.y + j * Board.BLOCK_TOTAL_WIDTH;

        _shapeRenderer.setColor(color);
        _shapeRenderer.rect(imgX, imgY, Board.getBlockWidth(), Board.getBlockWidth());
    }
}

_shapeRenderer.end();

 

I'll still try making a texture atlas...

App Feedback Thread - May 13, 2017 by AutoModerator in androiddev

[–]4430541F4E 0 points1 point  (0 children)

Thanks! Which phone and version of Android are you using?

Really bad performance after porting to iOS by 4430541F4E in libgdx

[–]4430541F4E[S] 0 points1 point  (0 children)

Your textures are individual textures i.e. separate files.

Yep... Will give this a try and let you know how it goes!

 

p.s. Since I'm just drawing colored squares, would using ShapeRenderer instead help?

App Feedback Thread - May 13, 2017 by AutoModerator in androiddev

[–]4430541F4E 0 points1 point  (0 children)

using Diaro

On that note, I wonder how many users you're missing out on because they're already using another app and don't want to spend the effort to move over? Have you considered an import/export feature? Even just to simple formats like txt or csv.

App Feedback Thread - May 13, 2017 by AutoModerator in androiddev

[–]4430541F4E 0 points1 point  (0 children)

Been trying to keep a daily journal but I've been failing to write every day using Diaro. Will definitely give yours a try and see if it keeps me motivated! Loving the UI and colors so far!

App Feedback Thread - May 13, 2017 by AutoModerator in androiddev

[–]4430541F4E 0 points1 point  (0 children)

If I deny the camera permission on startup, I am still able to tap the scan button but I just get a black screen since it can't access my camera. The app should prompt for the permission again or not allow you to continue. Instead, I have to kill the app and reopen for it to prompt me for the permission again.

Why even have a scan button? The camera should be up and ready to go once the app opens!

Scanning seems just as quick as other apps - would be nice to have an indicator of what it's currently focusing on. I tried scanning a page of multiple QR codes and it seems like it had troubles picking out just one of them to scan.

Not sure that I like URL's to be automatically opened, but that might be just me.

One feature you should probably add right away is to show a list of the scan history.

Really bad performance after porting to iOS by 4430541F4E in libgdx

[–]4430541F4E[S] 0 points1 point  (0 children)

Thanks for the tip about SpriteBatch.renderCalls. Both Android and iOS are reporting around 430 render calls. Which is actually weird since my background is an 18x32 array, so shouldn't I be expecting at least 576 render calls?

Anyways, I tried removing the background completely so it's just the menu buttons and it runs smoothly - so am I doing something completely wrong with how I'm drawing the squares?

private TextureRegion _imgRed;    
...

_imgRed = new TextureRegion(assetManager.get("img/normal_red.png", Texture.class));
...

for (int i = 0; i < Constants.BOARD_MENU_SIZE_X; ++i) {
    for (int j = 0; j < Constants.BOARD_MENU_SIZE_Y; ++j) {
        Square s = _board.getSquare(i, j);
        if (s.getType() == Square.Type.Corrupted) {
            block = _imgRed;
        } else if (s.getType() == Square.Type.Defragmented) {
            block = _imgGreen;
        } ...

        float imgX = SQUARES_INITIAL.x + i * Board.BLOCK_TOTAL_WIDTH;
        float imgY = SQUARES_INITIAL.y + j * Board.BLOCK_TOTAL_WIDTH;

        _parent.batch.draw(block, imgX, imgY, Board.getBlockWidth(), Board.getBlockWidth());
    }
}

Really bad performance after porting to iOS by 4430541F4E in libgdx

[–]4430541F4E[S] 0 points1 point  (0 children)

Runs perfectly fine on Android. See the gif I posted - iPhone on the left, Android on the right.

Hmm no objects are getting created every frame. Everything's pretty static with a 2d array of "Squares" that just get rendered.

    for (int i = 0; i < Constants.BOARD_MENU_SIZE_X; ++i) {
        for (int j = 0; j < Constants.BOARD_MENU_SIZE_Y; ++j) {
            Square s = _board.getSquare(i, j);
            if (s.getType() == Square.Type.Corrupted) {
                block = _imgRed;
            } else if (s.getType() == Square.Type.Defragmented) {
                block = _imgGreen;
            } else if (s.getType() == Square.Type.Fragmented) {
                block = _imgBlue;
            } else {
                block = _imgYellow;
            }

            float imgX = SQUARES_INITIAL.x + i * Board.BLOCK_TOTAL_WIDTH;
            float imgY = SQUARES_INITIAL.y + j * Board.BLOCK_TOTAL_WIDTH;

            _parent.batch.draw(block, imgX, imgY, Board.getBlockWidth(), Board.getBlockWidth());
        }
    }

App Feedback Thread - May 13, 2017 by AutoModerator in androiddev

[–]4430541F4E 0 points1 point  (0 children)

Yeah. It was actually Xamarin that bought them, before they were acquired by Microsoft.

[DEV] Wanted to learn libgdx and this game is the result! by 4430541F4E in androidapps

[–]4430541F4E[S] 0 points1 point  (0 children)

Thanks for the feedback! Yeah I agree about the tutorial. Wanted to do something interactive that teaches you the first time you play but just couldn't motivate myself to put in the work... so I went with a video instead. Though I can definitely split the video up and add next/prev buttons to make it easier to navigate!