Skip to main content

Posts

Setting up perforce server on Windows and allows connections from other local machines

Download p4server.exe for windows and install it. Restart the computer after you've installed it. Since it will install as windows service, you don't have to start the service and you're now ready to connect using p4v from local machine. But there will be a problem when you're trying to connect from another service since the perforce service is running on localhost:1666 so it only accept local connection only. You need to bind to 0.0.0.0:1666 but it will be quite hard and have a risk to change default perforce config files.. What you can do is you can modify the host file in other remote machines to connect to the server computer. In windows, hosts file is located at Windows/etc/driver folder and on Mac it's located at sudo nano /etc/hosts add the following line to the host file [your server machine local ip address] perforce Now in the p4v client of the remote machines, you will be able to connect using perforce:1666 Note : Don't forget to tu...

Optimising Unity new UI System

UI/Sprite textures aren't packed into a texture atlas by default. A tag is needed to group them. Read the documentation / tutorial on the sprite packer. Overlapping text/graphic boundaries with another text/graphic will create additional draw calls, even if the actual visual graphics do not overlap. Grids (other layouts too I presume) need minimum 1 pixel spacing between items, else items are considered overlapping and will create additional draw calls. Images with alpha 0 are still rendered. They are rendered with alpha 0 even though they are not seen. Unity currently does not support non-rectangle shapes as Sprites, so using the TightSpitePacker policy will cause image artifacts. When UI objects are offscreen, they are still batched (rendered as well?). Possible solutions: Change parent to non-UI parent, as UI Camera will no longer detect it Change layer of panel so UI Camera will no longer detect it Disable gameobject when off-screen ScrollRect performance tuning S...

Backing up and restoring the asset server database Unity3D

Backing up We have provided a command line tool to back up an asset server. The tool should be run from an administrator account on the machine running the asset server. Replace BACKUP_LOCATION with the path name you want the backup tool to place the backups: Mac OS X sudo /Library/UnityAssetServer/bin/as_backup BACKUP_LOCATION Linux sudo /opt/unity_asset_server/bin/as_backup BACKUP_LOCATION Windows "%ProgramFiles%\Unity\AssetServer\bin\as_backup.cmd" BACKUP_LOCATION as_backup will create a directory at BACKUP_LOCATION containing one or more files per project plus files containing information about each project and a backup of all users and their passwords. Restoring a Backup To restore an Asset Server backup produced with as_backup, first perform a clean installation of the Asset Server without any projects created. (The restore procedure will refuse to overwrite already existing projects with the same name.) Then run the provided backup restoration tool, a...

46 Tips & Tricks for 2D mobile Performance in Unity.

46 Tips & Tricks for 2D mobile Performance in Unity by Sickle Brick. If this is your first jump into the world of Unity, my first tip (this one’s a freebie) is to stop trying to use it like other languages and environments. You  will  be using GameObjects, you  will  be adding multiple script components, and you  will  have to think differently. When I first started, my approach was to largely ignore prefabs (or use them like Flash’s display list) and get a copy of Box2D running. Painful as it is to deviate, get ready to put in some work! Without further ado, let’s get started: Physics: -Use the built-in physics. It might seem like a waste of cycles to have a fully 3D physics engine running the show for a 2D game, but bear in mind that the Nvidia PhysX engine will be running in Unity’s native core. We’re talking about a hyper-optimised engine maintained by large professional teams, and not a hobbyist 2D engine. Freeze Z position and X/Y ro...

How to Fix the Unity Asset Server error "Cannot Start Service" on Windows

If you're using Unity Asset server on Windows, you may notice that you are getting Could not start server. It happens after using the asset server for a long time because of the small asset server bug (password expires). You will have to reset the password or set it to never expire to avoid happening from this kind of error. Here are the steps below to fix this problem. Step 01 - Open Computer Management under Control Panel or search from your computer. Step 02 - Locate the Local Users and Group Folder under System Tools.                      Note : This is only available for Windows 7 Pro/Ultimate users. Step 03 - Right lick on unitysrv and click properties. Step 04 - Under user properties, untick "User must change password at next logon" and tick "Password never expires" box. It's always good to change this setting after you've installed Asset server to avoid connection problem at later time. PS: This...

Mobile Ads Network choice for games and eCPMs

I've used loads of mobile ads network and integrated to my games/app in a wide variety of platforms. Some of them seems to be really good while others are serving really bad. Getting better eCPMs is really important for developer if he/she goes for freemium model to the apps and hoping to get the maximum eCPMs. List of providers and maximum eCPMS Provider iOS Android WP8/ WinRT BB10 Banner Interstitial eCPMs Chartboost Yes Yes No No No Yes $3-$5 AdBuddiz No Yes No No No Yes $2-$5 AdMob Yes Yes Yes No Yes Yes $0.2-$2 InMobi Yes Yes Yes No Yes Yes $0.05-$0.10 MobClix Yes Yes Yes No Yes No $0.01-$0.02 InnerActive Yes Yes Yes Yes Yes Yes $0.01- $0.6 ...