GameDev Marketplace

Men's i.make.games T-shirt

$20$15

Image of the Day Submit

IOTD | Top Screenshots

The Joy of A Laptop

24 replies to this topic

#1dsm1891  Members

Posted 02 July 2013 - 06:42 AM

POPULAR

Hello,

its not really a 'coding' horror, more of a development horror, but oh well..

So there I was stress testing the latest version of the game I am currently developing, to my delight I only dropped an average of 1(ish) frame/second (198fps), which was a lot less that my expectations. I decide to call it a night, and upload the current version of the project and go to bed. When I next came to open the project, and run it (just because), to my horror, my frames kept dropping and dropping until they hit a steady 40fps

After a few hours of trying to get the performance back up, by removing new code / double checking im on performance mode etc etc, I realise I have a blinking symbol on the right of my screen.

Spoiler

There was a few hours of my life I wont see again.

Has anyone else had similar issues?

Cheers!

Mobile Developer at PawPrint Games ltd.

(Not "mobile" as in I move around a lot, but as in phones, mobile phone developer)

(Although I am mobile. no, not as in a babies mobile, I move from place to place)

(Not "place" as in fish, but location.)

#2swiftcoder  Senior Moderators

Posted 02 July 2013 - 08:27 AM

POPULAR

Why did my game slow to a crawl, and all the shaders fallback to legacy mode? Because the damn laptop decided it was no longer plugged in, and switched to the integrated GPU.

Switchable discrete/integrated GPUs in laptops are the bane of my existence.

Tristam MacDonald - Software Engineer @ Amazon - [swiftcoding] [GitHub]

#3dsm1891  Members

Posted 02 July 2013 - 09:17 AM

Why did my game slow to a crawl, and all the shaders fallback to legacy mode? Because the damn laptop decided it was no longer plugged in, and switched to the integrated GPU.

Switchable discrete/integrated GPUs in laptops are the bane of my existence.

haha, I just remembered another one.

Opening Android emulator load up times:

Unplugged "power saver mode": ??I got fed up??

Unplugged "Performance mode": 20 mins

plugged "Powersaver": 7 mins

plugged "Performance mode": 2 mins

now if I want to program for android, I make sure I boot up the emulator THEN unplug lol

Mobile Developer at PawPrint Games ltd.

(Not "mobile" as in I move around a lot, but as in phones, mobile phone developer)

(Although I am mobile. no, not as in a babies mobile, I move from place to place)

(Not "place" as in fish, but location.)

#4Bacterius  Members

Posted 02 July 2013 - 09:26 AM

Switchable discrete/integrated GPUs in laptops are the bane of my existence.

I hope there's a way to disable that. I was considering getting a laptop next year but this is basically denying you hardware when you need it

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

#5swiftcoder  Senior Moderators

Posted 02 July 2013 - 09:37 AM

I hope there's a way to disable that. I was considering getting a laptop next year but this is basically denying you hardware when you need it

Yeah, there is. On my Retina MacBook Pro it's just a toggle under the power management options in System Preferences.

The issue is remembering to toggle it - you really don't want to forget, and leave the discrete GPU force-powered when you head off to that 8-hour flight...

Tristam MacDonald - Software Engineer @ Amazon - [swiftcoding] [GitHub]

#6wack  Members

Posted 02 July 2013 - 06:13 PM

Not quite like that, but I did recently have a moment with my laptop that made me feel like quite the idiot.

The keyboard stopped working, it just wouldn't type what I wanted. I even removed the keyboard and attempted to clean it. Didn't work.

So I just shrugged it off and thought I'll get a new one some day. Left it lying around for months.

Last week I started it again to se if there was anything on there to salvage to another computer. It turns out that

Spoiler

#7Solid_Spy  Members

Posted 28 July 2013 - 11:13 AM

I've actually never had a laptop, however i'm thinking of getting a galaxy.

#8TheChubu  Members

Posted 28 July 2013 - 04:22 PM

I want the universe.

"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

My journals: dustArtemis ECS framework and Making a Terrain Generator

#9Cornstalks  Members

Posted 28 July 2013 - 04:47 PM

My laptop was charging. and thus automatically limiting the performance of my laptop.

That's weird. Your laptop limits your performance when it's plugged in and charging? I thought most laptops only limited things when they were unplugged running off of battery...

[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#10slicer4ever  GDNet+

Posted 28 July 2013 - 05:48 PM

I want the universe.

Check out https://www.facebook.com/LiquidGames for some great games made by me on the Playstation Mobile market.

#11swiftcoder  Senior Moderators

Posted 28 July 2013 - 06:04 PM

Your laptop limits your performance when it's plugged in and charging? I thought most laptops only limited things when they were unplugged running off of battery...

I've run into a couple of cheapo laptops that overheat if you spin the GPU up while they are actively charging the battery.

As far as I can tell, the OEM pushed drivers that workaround the problem by clocking the GPU down until the battery is fully charged...

Tristam MacDonald - Software Engineer @ Amazon - [swiftcoding] [GitHub]

#12Servant of the Lord  Members

Posted 28 July 2013 - 06:13 PM

Not laptop-related per-se, but I've coded a Minecraft Launcher so I can easily host a Minecraft server just when my siblings and I want to play. I installed the Launcher on their laptops and my desktop, and they can use the launcher to remotely boot up the server on my machine if they want to get on the shared server.

Because Minecraft is mining-heavy, and mining requires you to repeatedly jab the left mouse button for hours on end (bad designer, no twinkie). I integrated into the launcher an assignable keyboard key to hold down, that'll simulate the mouse clicks instead of wearing out our mouses. It doesn't give any competitive advantage, mining still takes just as long as normal.

This mouse-clicking behavior occurs whenever the assigned key is held down - I use the 'R' key.

The problem is, I frequently accidently launch the the launcher (and Microsoft Word, and Excel - those Win7 taskbar buttons are too close together) without realizing it. So while I'm programming, my text cursor would randomly jump to different lines of code... as if something clicked the mouse. This happens every time I type 'R' while coding, if the launcher happens to be running on my machine. Took me awhile to realize what was going on - I had a new mouse (for some unknown reason, the left mouse button was worn off my previous one ), so I was assuming the new mouse was defective.

Thankfully the Launcher has a window, and isn't just a service, or I'd still be confused.

It's perfectly fine to abbreviate my username to 'Servant' or 'SotL' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames -

#13Bacterius  Members

Posted 28 July 2013 - 06:31 PM

Not laptop-related per-se, but I've coded a Minecraft Launcher so I can easily host a Minecraft server just when my siblings and I want to play. I installed the Launcher on their laptops and my desktop, and they can use the launcher to remotely boot up the server on my machine if they want to get on the shared server.

Because Minecraft is mining-heavy, and mining requires you to repeatedly jab the left mouse button for hours on end (bad designer, no twinkie). I integrated into the launcher an assignable keyboard key to hold down, that'll simulate the mouse clicks instead of wearing out our mouses. It doesn't give any competitive advantage, mining still takes just as long as normal.

This mouse-clicking behavior occurs whenever the assigned key is held down - I use the 'R' key.

The problem is, I frequently accidently launch the the launcher (and Microsoft Word, and Excel - those Win7 taskbar buttons are too close together) without realizing it. So while I'm programming, my text cursor would randomly jump to different lines of code... as if something clicked the mouse. This happens every time I type 'R' while coding, if the launcher happens to be running on my machine. Took me awhile to realize what was going on - I had a new mouse (for some unknown reason, the left mouse button was worn off my previous one ), so I was assuming the new mouse was defective.

Thankfully the Launcher has a window, and isn't just a service, or I'd still be confused.

Hmm. Sounds similar to an issue I had with X11 where clicking the middle mouse button would paste whatever text you highlighted last, wrecking havoc in source code (especially when scrolling). Except I couldn't find a satisfactory way to disable this - unwanted - legacy behaviour on a global basis. You get used to it, but it's rather irritating the first few weeks (*compile error* *compile error* *compile error* "raah" *throws mouse out of window*)

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

Posted 28 July 2013 - 07:48 PM

Holding down the left mouse button in minecraft works for me? It auto-repeats?

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

#15swiftcoder  Senior Moderators

Posted 28 July 2013 - 07:55 PM

Sounds similar to an issue I had with X11 where clicking the middle mouse button would paste whatever text you highlighted last, wrecking havoc in source code (especially when scrolling).

I don't think I've ever accidentally clicked the middle mouse button...

That aside, middle-mouse copy/paste is one of those features that I have a hard time living without, whenever I land on a Windows machine, or get stuck with a two-button mouse.

Tristam MacDonald - Software Engineer @ Amazon - [swiftcoding] [GitHub]

#16Servant of the Lord  Members

Posted 28 July 2013 - 08:30 PM

Holding down the left mouse button in minecraft works for me? It auto-repeats?

I don't know if they changed it, I haven't played since a few versions before the official release.

[Edit:] Now that I think about it, it wasn't mining, it was farming monsters that caused my siblings to rapid-click repeatedly. IIRC, at least while still in beta, you couldn't hold the mouse button down for swinging the sword. So I guess the designers can have half their twinkie back.

Edited by Servant of the Lord, 28 July 2013 - 08:32 PM.

It's perfectly fine to abbreviate my username to 'Servant' or 'SotL' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames -

#17wodinoneeye  Members

Posted 25 August 2013 - 07:48 PM

Long ago starting DIrectX programming I was aplalled out all the wrapper/skeleton code stuff you needed just to get  an Application to run (use the examples from the SDK and its very obvious).

Unfortunatrely with the spectrum of targeted hardware it was necessary to have to be able to determine if the hardware the Application/drivers was to run on supported various operations  (or had to be emulated softwarewise)  -- even just to have an advanced enuf DirectX driver version.  A good chunk of the App code was to do that.

Maybe those days are back now with Apps on these handheld things becoming popular  (ack -- some of the processors dont even have native Floating point ops !!!)   and certainly with their power awareness and sleep/wake strategies etc...

---

Oh and you are lucky you dont have the monster laptop I had years ago that if you tried to hold it in your lap you would literally burn your legs (full power CPU and GPU in the thing and retard designers (a well known company) puting the air blower vents on the bottom instead of the sides )

Edited by wodinoneeye, 25 August 2013 - 07:54 PM.

--------------------------------------------Ratings are Opinion, not Fact

#18Bacterius  Members

Posted 25 August 2013 - 08:13 PM

Oh and you are lucky you dont have the monster laptop I had years ago that if you tried to hold it in your lap you would literally burn your legs (full power CPU and GPU in the thing and retard designers (a well known company) puting the air blower vents on the bottom instead of the sides )

Let me guess.. Acer? I had one of theirs and it had the vents on the bottom as well. The damn thing kept overheating.

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

#19wodinoneeye  Members

Posted 29 August 2013 - 12:02 AM

Oh and you are lucky you dont have the monster laptop I had years ago that if you tried to hold it in your lap you would literally burn your legs (full power CPU and GPU in the thing and retard designers (a well known company) puting the air blower vents on the bottom instead of the sides )

Let me guess.. Acer? I had one of theirs and it had the vents on the bottom as well. The damn thing kept overheating.

Actually was a Toshiba  but was quite a while ago (10+ years) .  Another brainfart on their design was having the CD button such that if you picked the monster up holding on either side at least half the time the button was triggered and the CD shelf would want to open.   Odd thing was that when its sitting in your lap (or on a large book on your lap)  it was almost impossible to find the button to make it open when you WANTED to open it  (it was flush with the side - not recessed which might have prevented both problems)

Edited by wodinoneeye, 29 August 2013 - 12:02 AM.

--------------------------------------------Ratings are Opinion, not Fact

#20n3Xus  Members

Posted 06 September 2013 - 06:02 AM

NUM LOCK was on.

Had the same problem: plugged a desktop keyboard to laptop once and it enabled num lock, from then on my laptop keyboard had numlock enabled.

I figured it out after 2 months

Edited by n3Xus, 06 September 2013 - 06:03 AM.